home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Quickdraw.a < prev    next >
Encoding:
Text File  |  1998-02-12  |  82.3 KB  |  2,930 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Quickdraw.a
  3. ;
  4. ;    Contains:    Interface to Quickdraw Graphics
  5. ;
  6. ;    Version:    Technology:    Mac OS 8.1
  7. ;                Release:    Universal Interfaces 3.1
  8. ;
  9. ;    Copyright:    © 1985-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  19. __QUICKDRAW__ SET 1
  20.  
  21.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  22.     include 'MacTypes.a'
  23.     ENDIF
  24.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  25.     include 'MixedMode.a'
  26.     ENDIF
  27.     IF &TYPE('__QUICKDRAWTEXT__') = 'UNDEFINED' THEN
  28.     include 'QuickdrawText.a'
  29.     ENDIF
  30.  
  31.  
  32. invalColReq                        EQU        -1                    ;invalid color table request
  33.  
  34.                                                             ; transfer modes 
  35. srcCopy                            EQU        0                    ;the 16 transfer modes
  36. srcOr                            EQU        1
  37. srcXor                            EQU        2
  38. srcBic                            EQU        3
  39. notSrcCopy                        EQU        4
  40. notSrcOr                        EQU        5
  41. notSrcXor                        EQU        6
  42. notSrcBic                        EQU        7
  43. patCopy                            EQU        8
  44. patOr                            EQU        9
  45. patXor                            EQU        10
  46. patBic                            EQU        11
  47. notPatCopy                        EQU        12
  48. notPatOr                        EQU        13
  49. notPatXor                        EQU        14
  50. notPatBic                        EQU        15                    ; Special Text Transfer Mode 
  51. grayishTextOr                    EQU        49
  52. hilitetransfermode                EQU        50
  53. hilite                            EQU        50                    ; Arithmetic transfer modes 
  54. blend                            EQU        32
  55. addPin                            EQU        33
  56. addOver                            EQU        34
  57. subPin                            EQU        35
  58. addMax                            EQU        37
  59. adMax                            EQU        37
  60. subOver                            EQU        38
  61. adMin                            EQU        39
  62. ditherCopy                        EQU        64                    ; Transparent mode constant 
  63. transparent                        EQU        36
  64.  
  65. italicBit                        EQU        1
  66. ulineBit                        EQU        2
  67. outlineBit                        EQU        3
  68. shadowBit                        EQU        4
  69. condenseBit                        EQU        5
  70. extendBit                        EQU        6
  71.  
  72.                                                             ; QuickDraw color separation constants 
  73. normalBit                        EQU        0                    ;normal screen mapping
  74. inverseBit                        EQU        1                    ;inverse screen mapping
  75. redBit                            EQU        4                    ;RGB additive mapping
  76. greenBit                        EQU        3
  77. blueBit                            EQU        2
  78. cyanBit                            EQU        8                    ;CMYBk subtractive mapping
  79. magentaBit                        EQU        7
  80. yellowBit                        EQU        6
  81. blackBit                        EQU        5
  82.  
  83. blackColor                        EQU        33                    ;colors expressed in these mappings
  84. whiteColor                        EQU        30
  85. redColor                        EQU        205
  86. greenColor                        EQU        341
  87. blueColor                        EQU        409
  88. cyanColor                        EQU        273
  89. magentaColor                    EQU        137
  90. yellowColor                        EQU        69
  91.  
  92. picLParen                        EQU        0                    ;standard picture comments
  93. picRParen                        EQU        1
  94. clutType                        EQU        0                    ;0 if lookup table
  95. fixedType                        EQU        1                    ;1 if fixed table
  96. directType                        EQU        2                    ;2 if direct values
  97. gdDevType                        EQU        0                    ;0 = monochrome 1 = color
  98.  
  99. interlacedDevice                EQU        2                    ; 1 if single pixel lines look bad 
  100. roundedDevice                    EQU        5                    ; 1 if device has been “rounded” into the GrayRgn 
  101. hasAuxMenuBar                    EQU        6                    ; 1 if device has an aux menu bar on it 
  102. burstDevice                        EQU        7
  103. ext32Device                        EQU        8
  104. ramInit                            EQU        10                    ;1 if initialized from 'scrn' resource
  105. mainScreen                        EQU        11                    ; 1 if main screen 
  106. allInit                            EQU        12                    ; 1 if all devices initialized 
  107. screenDevice                    EQU        13                    ;1 if screen device [not used]
  108. noDriver                        EQU        14                    ; 1 if no driver for this GDevice 
  109. screenActive                    EQU        15                    ;1 if in use
  110. hiliteBit                        EQU        7                    ;flag bit in HiliteMode (lowMem flag)
  111. pHiliteBit                        EQU        0                    ;flag bit in HiliteMode used with BitClr procedure
  112. defQDColors                        EQU        127                    ;resource ID of clut for default QDColors
  113.                                                             ; pixel type 
  114. RGBDirect                        EQU        16                    ; 16 & 32 bits/pixel pixelType value 
  115.                                                             ; pmVersion values 
  116. baseAddr32                        EQU        4                    ;pixmap base address is 32-bit address
  117.  
  118.  
  119. sysPatListID                    EQU        0
  120. iBeamCursor                        EQU        1
  121. crossCursor                        EQU        2
  122. plusCursor                        EQU        3
  123. watchCursor                        EQU        4
  124.  
  125. kQDGrafVerbFrame                EQU        0
  126. kQDGrafVerbPaint                EQU        1
  127. kQDGrafVerbErase                EQU        2
  128. kQDGrafVerbInvert                EQU        3
  129. kQDGrafVerbFill                    EQU        4
  130.     IF OLDROUTINENAMES THEN
  131.  
  132. frame                            EQU        0
  133. paint                            EQU        1
  134. erase                            EQU        2
  135. invert                            EQU        3
  136. fill                            EQU        4
  137.     ENDIF    ; OLDROUTINENAMES
  138. ; typedef SInt8                         GrafVerb
  139.  
  140.  
  141. chunky                            EQU        0
  142. chunkyPlanar                    EQU        1
  143. planar                            EQU        2
  144. ; typedef SInt8                         PixelType
  145.  
  146. Bits16                    RECORD 0
  147. elements                 ds.w    16
  148. sizeof                     EQU *                    ; size:   $20 (32)
  149.                         ENDR
  150.  
  151.  
  152.  
  153. ; ***************   IMPORTANT NOTE REGARDING Pattern  **************************************
  154. ;   Patterns were originally defined as:
  155. ;   
  156. ;        C:             typedef unsigned char Pattern[8];
  157. ;        Pascal:        Pattern = PACKED ARRAY [0..7] OF 0..255;
  158. ;        
  159. ;   The old array definition of Pattern would cause 68000 based CPU's to crash in certain circum-
  160. ;   stances. The new struct definition is safe, but may require source code changes to compile.
  161. ;    
  162. ;********************************************************************************************
  163.  
  164. Pattern                    RECORD 0
  165. pat                         ds.b    8                ; offset: $0 (0)
  166. sizeof                     EQU *                    ; size:   $8 (8)
  167.                         ENDR
  168. ; ConstPatternParam is no longer needed.  It was first created when Pattern was an array.
  169. ; Now that Pattern is a struct, it is more straight forward to just add the "const" qualifier
  170. ; on the parameter type (e.g. "const Pattern * pat" instead of "ConstPatternParam pat").
  171. ;
  172.  
  173. ; typedef struct Pattern *                PatPtr
  174.  
  175. ; typedef PatPtr *                        PatHandle
  176.  
  177. ; typedef short                         QDErr
  178.  
  179.  
  180. singleDevicesBit                EQU        0
  181. dontMatchSeedsBit                EQU        1
  182. allDevicesBit                    EQU        2
  183.  
  184. singleDevices                    EQU        $01
  185. dontMatchSeeds                    EQU        $02
  186. allDevices                        EQU        $04
  187. ; typedef unsigned long                 DeviceLoopFlags
  188.  
  189. BitMap                    RECORD 0
  190. baseAddr                 ds.l    1                ; offset: $0 (0)
  191. rowBytes                 ds.w    1                ; offset: $4 (4)
  192. bounds                     ds        Rect            ; offset: $6 (6)
  193. sizeof                     EQU *                    ; size:   $E (14)
  194.                         ENDR
  195. ; typedef struct BitMap *                BitMapPtr
  196.  
  197. ; typedef BitMapPtr *                    BitMapHandle
  198.  
  199. Cursor                    RECORD 0
  200. data                     ds        Bits16            ; offset: $0 (0)
  201. mask                     ds        Bits16            ; offset: $20 (32)
  202. hotSpot                     ds        Point            ; offset: $40 (64)
  203. sizeof                     EQU *                    ; size:   $44 (68)
  204.                         ENDR
  205. ; typedef struct Cursor *                CursPtr
  206.  
  207. ; typedef CursPtr *                        CursHandle
  208.  
  209. PenState                RECORD 0
  210. pnLoc                     ds        Point            ; offset: $0 (0)
  211. pnSize                     ds        Point            ; offset: $4 (4)
  212. pnMode                     ds.w    1                ; offset: $8 (8)
  213. pnPat                     ds        Pattern            ; offset: $A (10)
  214. sizeof                     EQU *                    ; size:   $12 (18)
  215.                         ENDR
  216. MacRegion                RECORD 0
  217. rgnSize                     ds.w    1                ; offset: $0 (0)        ; size in bytes
  218. rgnBBox                     ds        Rect            ; offset: $2 (2)        ; enclosing rectangle
  219. sizeof                     EQU *                    ; size:   $A (10)
  220.                         ENDR
  221. Region                    RECORD 0
  222. rgnSize                     ds.w    1                ; offset: $0 (0)        ; size in bytes
  223. rgnBBox                     ds        Rect            ; offset: $2 (2)        ; enclosing rectangle
  224. sizeof                     EQU *                    ; size:   $A (10)
  225.                         ENDR
  226. ; typedef struct MacRegion *            RgnPtr
  227.  
  228. ; typedef RgnPtr *                        RgnHandle
  229.  
  230. Picture                    RECORD 0
  231. picSize                     ds.w    1                ; offset: $0 (0)
  232. picFrame                 ds        Rect            ; offset: $2 (2)
  233. sizeof                     EQU *                    ; size:   $A (10)
  234.                         ENDR
  235. ; typedef struct Picture *                PicPtr
  236.  
  237. ; typedef PicPtr *                        PicHandle
  238.  
  239. MacPolygon                RECORD 0
  240. polySize                 ds.w    1                ; offset: $0 (0)
  241. polyBBox                 ds        Rect            ; offset: $2 (2)
  242. polyPoints                 ds        Point            ; offset: $A (10) <-- really an array of length one
  243. sizeof                     EQU *                    ; size:   $E (14)
  244.                         ENDR
  245. Polygon                    RECORD 0
  246. polySize                 ds.w    1                ; offset: $0 (0)
  247. polyBBox                 ds        Rect            ; offset: $2 (2)
  248. polyPoints                 ds        Point            ; offset: $A (10) <-- really an array of length one
  249. sizeof                     EQU *                    ; size:   $E (14)
  250.                         ENDR
  251. ; typedef struct MacPolygon *            PolyPtr
  252.  
  253. ; typedef PolyPtr *                        PolyHandle
  254.  
  255. QDProcs                    RECORD 0
  256. textProc                 ds.l    1                ; offset: $0 (0)
  257. lineProc                 ds.l    1                ; offset: $4 (4)
  258. rectProc                 ds.l    1                ; offset: $8 (8)
  259. rRectProc                 ds.l    1                ; offset: $C (12)
  260. ovalProc                 ds.l    1                ; offset: $10 (16)
  261. arcProc                     ds.l    1                ; offset: $14 (20)
  262. polyProc                 ds.l    1                ; offset: $18 (24)
  263. rgnProc                     ds.l    1                ; offset: $1C (28)
  264. bitsProc                 ds.l    1                ; offset: $20 (32)
  265. commentProc                 ds.l    1                ; offset: $24 (36)
  266. txMeasProc                 ds.l    1                ; offset: $28 (40)
  267. getPicProc                 ds.l    1                ; offset: $2C (44)
  268. putPicProc                 ds.l    1                ; offset: $30 (48)
  269. sizeof                     EQU *                    ; size:   $34 (52)
  270.                         ENDR
  271. ; typedef struct QDProcs *                QDProcsPtr
  272.  
  273.  
  274.  
  275. GrafPort                RECORD 0
  276. device                     ds.w    1                ; offset: $0 (0)
  277. portBits                 ds        BitMap            ; offset: $2 (2)
  278. portRect                 ds        Rect            ; offset: $10 (16)
  279. visRgn                     ds.l    1                ; offset: $18 (24)
  280. clipRgn                     ds.l    1                ; offset: $1C (28)
  281. bkPat                     ds        Pattern            ; offset: $20 (32)
  282. fillPat                     ds        Pattern            ; offset: $28 (40)
  283. pnLoc                     ds        Point            ; offset: $30 (48)
  284. pnSize                     ds        Point            ; offset: $34 (52)
  285. pnMode                     ds.w    1                ; offset: $38 (56)
  286. pnPat                     ds        Pattern            ; offset: $3A (58)
  287. pnVis                     ds.w    1                ; offset: $42 (66)
  288. txFont                     ds.w    1                ; offset: $44 (68)
  289. txFace                     ds.w    1                ; offset: $46 (70)        ; StyleField occupies 16-bits, but only first 8-bits are used
  290. txMode                     ds.w    1                ; offset: $48 (72)
  291. txSize                     ds.w    1                ; offset: $4A (74)
  292. spExtra                     ds.l    1                ; offset: $4C (76)
  293. fgColor                     ds.l    1                ; offset: $50 (80)
  294. bkColor                     ds.l    1                ; offset: $54 (84)
  295. colrBit                     ds.w    1                ; offset: $58 (88)
  296. patStretch                 ds.w    1                ; offset: $5A (90)
  297. picSave                     ds.l    1                ; offset: $5C (92)
  298. rgnSave                     ds.l    1                ; offset: $60 (96)
  299. polySave                 ds.l    1                ; offset: $64 (100)
  300. grafProcs                 ds.l    1                ; offset: $68 (104)
  301. sizeof                     EQU *                    ; size:   $6C (108)
  302.                         ENDR
  303. ; typedef struct GrafPort *                GrafPtr
  304.  
  305.  
  306. ; *    This set of definitions "belongs" in Windows.
  307. ; *    But, there is a circularity in the headers where Windows includes Controls and
  308. ; *    Controls includes Windows. To break the circle, the information
  309. ; *    needed by Controls is moved from Windows to Quickdraw.
  310.  
  311. ; typedef GrafPtr                         WindowPtr
  312.  
  313. ; typedef WindowPtr                     DialogPtr
  314.  
  315. ; typedef WindowPtr                     WindowRef
  316.  
  317. ;  DragConstraint constants to pass to DragGray,DragTheRgn, or ConstrainedDragRgn
  318. ; typedef UInt16                         DragConstraint
  319.  
  320.  
  321. kNoConstraint                    EQU        0
  322. kVerticalConstraint                EQU        1
  323. kHorizontalConstraint            EQU        2
  324.  
  325. ; *    Here ends the list of things that "belong" in Windows.
  326.  
  327.  
  328.  
  329. RGBColor                RECORD 0
  330. red                         ds.w    1                ; offset: $0 (0)        ; magnitude of red component
  331. green                     ds.w    1                ; offset: $2 (2)        ; magnitude of green component
  332. blue                     ds.w    1                ; offset: $4 (4)        ; magnitude of blue component
  333. sizeof                     EQU *                    ; size:   $6 (6)
  334.                         ENDR
  335. ; typedef struct RGBColor *                RGBColorPtr
  336.  
  337. ; typedef RGBColorPtr *                    RGBColorHdl
  338.  
  339. ColorSpec                RECORD 0
  340. value                     ds.w    1                ; offset: $0 (0)        ; index or other value
  341. rgb                         ds        RGBColor        ; offset: $2 (2)        ; true color
  342. sizeof                     EQU *                    ; size:   $8 (8)
  343.                         ENDR
  344. ; typedef struct ColorSpec *            ColorSpecPtr
  345.  
  346. CSpecArray                RECORD 0
  347. elements                 ds.b    1 * ColorSpec.sizeof
  348. sizeof                     EQU *                    ; size:   $8 (8)
  349.                         ENDR
  350.  
  351.  
  352. ColorTable                RECORD 0
  353. ctSeed                     ds.l    1                ; offset: $0 (0)        ; unique identifier for table
  354. ctFlags                     ds.w    1                ; offset: $4 (4)        ; high bit: 0 = PixMap; 1 = device
  355. ctSize                     ds.w    1                ; offset: $6 (6)        ; number of entries in CTTable
  356. ctTable                     ds        CSpecArray        ; offset: $8 (8)        ; array [0..0] of ColorSpec
  357. sizeof                     EQU *                    ; size:   $10 (16)
  358.                         ENDR
  359. ; typedef struct ColorTable *            CTabPtr
  360.  
  361. ; typedef CTabPtr *                        CTabHandle
  362.  
  363. xColorSpec                RECORD 0
  364. value                     ds.w    1                ; offset: $0 (0)        ; index or other value
  365. rgb                         ds        RGBColor        ; offset: $2 (2)        ; true color
  366. xalpha                     ds.w    1                ; offset: $8 (8)
  367. sizeof                     EQU *                    ; size:   $A (10)
  368.                         ENDR
  369. ; typedef struct xColorSpec *            xColorSpecPtr
  370.  
  371. xCSpecArray                RECORD 0
  372. elements                 ds.b    1 * xColorSpec.sizeof
  373. sizeof                     EQU *                    ; size:   $A (10)
  374.                         ENDR
  375.  
  376.  
  377. MatchRec                RECORD 0
  378. red                         ds.w    1                ; offset: $0 (0)
  379. green                     ds.w    1                ; offset: $2 (2)
  380. blue                     ds.w    1                ; offset: $4 (4)
  381. matchData                 ds.l    1                ; offset: $6 (6)
  382. sizeof                     EQU *                    ; size:   $A (10)
  383.                         ENDR
  384. ;    QuickTime 3.0 makes PixMap data structure available on non-Mac OS's.
  385. ;    In order to implement PixMap in these alternate environments, the PixMap
  386. ;    had to be extended. The pmReserved field was changed to pmExt which is
  387. ;    a Handle to extra info.  The planeBytes field was changed to pixelFormat.
  388. ;
  389.  
  390.     IF &TYPE('OLDPIXMAPSTRUCT') = 'UNDEFINED' THEN
  391.     IF TARGET_OS_MAC THEN
  392.     OLDPIXMAPSTRUCT: SET 1
  393.     ELSE
  394.     OLDPIXMAPSTRUCT: SET 0
  395.     ENDIF    ; TARGET_OS_MAC
  396.     ENDIF
  397. ;  pixel formats
  398.  
  399. k1MonochromePixelFormat            EQU        $00000001            ; 1 bit indexed
  400. k2IndexedPixelFormat            EQU        $00000002            ; 2 bit indexed
  401. k4IndexedPixelFormat            EQU        $00000004            ; 4 bit indexed
  402. k8IndexedPixelFormat            EQU        $00000008            ; 8 bit indexed
  403. k16BE555PixelFormat                EQU        $00000010            ; 16 bit BE rgb 555 (Mac)
  404. k24RGBPixelFormat                EQU        $00000018            ; 24 bit rgb 
  405. k32ARGBPixelFormat                EQU        $00000020            ; 32 bit argb    (Mac)
  406. k1IndexedGrayPixelFormat        EQU        $00000021            ; 1 bit indexed gray
  407. k2IndexedGrayPixelFormat        EQU        $00000022            ; 2 bit indexed gray
  408. k4IndexedGrayPixelFormat        EQU        $00000024            ; 4 bit indexed gray
  409. k8IndexedGrayPixelFormat        EQU        $00000028            ; 8 bit indexed gray
  410.  
  411. ;  values for PixMap.pixelFormat
  412.  
  413. k16LE555PixelFormat                EQU        'L555'                ; 16 bit LE rgb 555 (PC)
  414. k16BE565PixelFormat                EQU        'B565'                ; 16 bit BE rgb 565
  415. k16LE565PixelFormat                EQU        'L565'                ; 16 bit LE rgb 565
  416. k24BGRPixelFormat                EQU        '24BG'                ; 24 bit bgr 
  417. k32BGRAPixelFormat                EQU        'BGRA'                ; 32 bit bgra    (Matrox)
  418. k32ABGRPixelFormat                EQU        'ABGR'                ; 32 bit abgr    
  419. k32RGBAPixelFormat                EQU        'RGBA'                ; 32 bit rgba    
  420. kYUVSPixelFormat                EQU        'yuvs'                ; YUV 4:2:2 byte ordering 16-unsigned = 'YUY2'
  421. kYUVUPixelFormat                EQU        'yuvu'                ; YUV 4:2:2 byte ordering 16-signed
  422. kYVU9PixelFormat                EQU        'YVU9'                ; YVU9 Planar    9
  423. kYUV411PixelFormat                EQU        'Y411'                ; YUV 4:1:1 Interleaved    16
  424. kYVYU422PixelFormat                EQU        'YVYU'                ; YVYU 4:2:2 byte ordering    16
  425. kUYVY422PixelFormat                EQU        'UYVY'                ; UYVY 4:2:2 byte ordering    16
  426. kYUV211PixelFormat                EQU        'Y211'                ; YUV 2:1:1 Packed    8
  427.  
  428.     IF ¬ OLDPIXMAPSTRUCT THEN
  429. PixMapExtension            RECORD 0
  430. extSize                     ds.l    1                ; offset: $0 (0)        ; size of struct, duh!
  431. pmBits                     ds.l    1                ; offset: $4 (4)        ; pixmap attributes bitfield
  432. pmGD                     ds.l    1                ; offset: $8 (8)        ; this is a GDHandle
  433. pmSeed                     ds.l    1                ; offset: $C (12)
  434. reserved0                 ds.l    1                ; offset: $10 (16)        ; reserved for future use
  435. reserved1                 ds.l    1                ; offset: $14 (20)
  436. reserved2                 ds.l    1                ; offset: $18 (24)
  437. sizeof                     EQU *                    ; size:   $1C (28)
  438.                         ENDR
  439. ; typedef struct PixMapExtension *        PixMapExtPtr
  440.  
  441. ; typedef PixMapExtPtr *                PixMapExtHandle
  442.  
  443.     ENDIF
  444. PixMap                    RECORD 0
  445. baseAddr                 ds.l    1                ; offset: $0 (0)        ; pointer to pixels
  446. rowBytes                 ds.w    1                ; offset: $4 (4)        ; offset to next line
  447. bounds                     ds        Rect            ; offset: $6 (6)        ; encloses bitmap
  448. pmVersion                 ds.w    1                ; offset: $E (14)        ; pixMap version number
  449. packType                 ds.w    1                ; offset: $10 (16)        ; defines packing format
  450. packSize                 ds.l    1                ; offset: $12 (18)        ; length of pixel data
  451. hRes                     ds.l    1                ; offset: $16 (22)        ; horiz. resolution (ppi)
  452. vRes                     ds.l    1                ; offset: $1A (26)        ; vert. resolution (ppi)
  453. pixelType                 ds.w    1                ; offset: $1E (30)        ; defines pixel type
  454. pixelSize                 ds.w    1                ; offset: $20 (32)        ; # bits in pixel
  455. cmpCount                 ds.w    1                ; offset: $22 (34)        ; # components in pixel
  456. cmpSize                     ds.w    1                ; offset: $24 (36)        ; # bits per component
  457. planeBytes                 ds.l    1                ; offset: $26 (38)        ; offset to next plane
  458. pmTable                     ds.l    1                ; offset: $2A (42)        ; color map for this pixMap
  459. pmReserved                 ds.l    1                ; offset: $2E (46)
  460. sizeof                     EQU *                    ; size:   $32 (50)
  461.                         ENDR
  462. ; typedef struct PixMap *                PixMapPtr
  463.  
  464. ; typedef PixMapPtr *                    PixMapHandle
  465.  
  466. PixPat                    RECORD 0
  467. patType                     ds.w    1                ; offset: $0 (0)        ; type of pattern
  468. patMap                     ds.l    1                ; offset: $2 (2)        ; the pattern's pixMap
  469. patData                     ds.l    1                ; offset: $6 (6)        ; pixmap's data
  470. patXData                 ds.l    1                ; offset: $A (10)        ; expanded Pattern data
  471. patXValid                 ds.w    1                ; offset: $E (14)        ; flags whether expanded Pattern valid
  472. patXMap                     ds.l    1                ; offset: $10 (16)        ; Handle to expanded Pattern data
  473. pat1Data                 ds        Pattern            ; offset: $14 (20)        ; old-Style pattern/RGB color
  474. sizeof                     EQU *                    ; size:   $1C (28)
  475.                         ENDR
  476. ; typedef struct PixPat *                PixPatPtr
  477.  
  478. ; typedef PixPatPtr *                    PixPatHandle
  479.  
  480. CCrsr                    RECORD 0
  481. crsrType                 ds.w    1                ; offset: $0 (0)        ; type of cursor
  482. crsrMap                     ds.l    1                ; offset: $2 (2)        ; the cursor's pixmap
  483. crsrData                 ds.l    1                ; offset: $6 (6)        ; cursor's data
  484. crsrXData                 ds.l    1                ; offset: $A (10)        ; expanded cursor data
  485. crsrXValid                 ds.w    1                ; offset: $E (14)        ; depth of expanded data (0 if none)
  486. crsrXHandle                 ds.l    1                ; offset: $10 (16)        ; future use
  487. crsr1Data                 ds        Bits16            ; offset: $14 (20)        ; one-bit cursor
  488. crsrMask                 ds        Bits16            ; offset: $34 (52)        ; cursor's mask
  489. crsrHotSpot                 ds        Point            ; offset: $54 (84)        ; cursor's hotspot
  490. crsrXTable                 ds.l    1                ; offset: $58 (88)        ; private
  491. crsrID                     ds.l    1                ; offset: $5C (92)        ; private
  492. sizeof                     EQU *                    ; size:   $60 (96)
  493.                         ENDR
  494. ; typedef struct CCrsr *                CCrsrPtr
  495.  
  496. ; typedef CCrsrPtr *                    CCrsrHandle
  497.  
  498.     IF OLDROUTINELOCATIONS THEN
  499. CIcon                    RECORD 0
  500. iconPMap                 ds        PixMap            ; offset: $0 (0)        ; the icon's pixMap
  501. iconMask                 ds        BitMap            ; offset: $32 (50)        ; the icon's mask
  502. iconBMap                 ds        BitMap            ; offset: $40 (64)        ; the icon's bitMap
  503. iconData                 ds.l    1                ; offset: $4E (78)        ; the icon's data
  504. iconMaskData             ds.w    1                ; offset: $52 (82) <-- really an array of length one ; icon's mask and BitMap data
  505. sizeof                     EQU *                    ; size:   $54 (84)
  506.                         ENDR
  507. ; typedef struct CIcon *                CIconPtr
  508.  
  509. ; typedef CIconPtr *                    CIconHandle
  510.  
  511.     ENDIF    ; OLDROUTINELOCATIONS
  512. GammaTbl                RECORD 0
  513. gVersion                 ds.w    1                ; offset: $0 (0)        ; gamma version number
  514. gType                     ds.w    1                ; offset: $2 (2)        ; gamma data type
  515. gFormulaSize             ds.w    1                ; offset: $4 (4)        ; Formula data size
  516. gChanCnt                 ds.w    1                ; offset: $6 (6)        ; number of channels of data
  517. gDataCnt                 ds.w    1                ; offset: $8 (8)        ; number of values/channel
  518. gDataWidth                 ds.w    1                ; offset: $A (10)        ; bits/corrected value (data packed to next larger byte size)
  519. gFormulaData             ds.w    1                ; offset: $C (12) <-- really an array of length one ; data for formulas followed by gamma values
  520. sizeof                     EQU *                    ; size:   $E (14)
  521.                         ENDR
  522. ; typedef struct GammaTbl *                GammaTblPtr
  523.  
  524. ; typedef GammaTblPtr *                    GammaTblHandle
  525.  
  526. ITab                    RECORD 0
  527. iTabSeed                 ds.l    1                ; offset: $0 (0)        ; copy of CTSeed from source CTable
  528. iTabRes                     ds.w    1                ; offset: $4 (4)        ; bits/channel resolution of iTable
  529. iTTable                     ds.b    1                ; offset: $6 (6) <-- really an array of length one ; byte colortable index values
  530.                          ORG 8
  531. sizeof                     EQU *                    ; size:   $8 (8)
  532.                         ENDR
  533. ; typedef struct ITab *                    ITabPtr
  534.  
  535. ; typedef ITabPtr *                        ITabHandle
  536.  
  537. SProcRec                RECORD 0
  538. nxtSrch                     ds.l    1                ; offset: $0 (0)        ; SProcHndl Handle to next SProcRec
  539. srchProc                 ds.l    1                ; offset: $4 (4)        ; search procedure proc ptr
  540. sizeof                     EQU *                    ; size:   $8 (8)
  541.                         ENDR
  542. ; typedef struct SProcRec *                SProcPtr
  543.  
  544. ; typedef SProcPtr *                    SProcHndl
  545.  
  546. CProcRec                RECORD 0
  547. nxtComp                     ds.l    1                ; offset: $0 (0)        ; CProcHndl Handle to next CProcRec
  548. compProc                 ds.l    1                ; offset: $4 (4)        ; complement procedure proc ptr
  549. sizeof                     EQU *                    ; size:   $8 (8)
  550.                         ENDR
  551. ; typedef struct CProcRec *                CProcPtr
  552.  
  553. ; typedef CProcPtr *                    CProcHndl
  554.  
  555. ;    QuickTime 3.0 makes GDevice data structure available on non-Mac OS's.
  556. ;    In order to implement GDevice in these alternate environments, the GDevice
  557. ;    had to be extended. The gdReserved field was changed to gdExt which is
  558. ;    a Handle to extra info.  
  559. ;
  560.  
  561.     IF &TYPE('OLDGDEVICESTRUCT') = 'UNDEFINED' THEN
  562.     IF TARGET_OS_MAC THEN
  563.     OLDGDEVICESTRUCT: SET 1
  564.     ELSE
  565.     OLDGDEVICESTRUCT: SET 0
  566.     ENDIF    ; TARGET_OS_MAC
  567.     ENDIF
  568. GDevice                    RECORD 0
  569. gdRefNum                 ds.w    1                ; offset: $0 (0)        ; driver's unit number
  570. gdID                     ds.w    1                ; offset: $2 (2)        ; client ID for search procs
  571. gdType                     ds.w    1                ; offset: $4 (4)        ; fixed/CLUT/direct
  572. gdITable                 ds.l    1                ; offset: $6 (6)        ; Handle to inverse lookup table
  573. gdResPref                 ds.w    1                ; offset: $A (10)        ; preferred resolution of GDITable
  574. gdSearchProc             ds.l    1                ; offset: $C (12)        ; search proc list head
  575. gdCompProc                 ds.l    1                ; offset: $10 (16)        ; complement proc list
  576. gdFlags                     ds.w    1                ; offset: $14 (20)        ; grafDevice flags word
  577. gdPMap                     ds.l    1                ; offset: $16 (22)        ; describing pixMap
  578. gdRefCon                 ds.l    1                ; offset: $1A (26)        ; reference value
  579. gdNextGD                 ds.l    1                ; offset: $1E (30)        ; GDHandle Handle of next gDevice
  580. gdRect                     ds        Rect            ; offset: $22 (34)        ;  device's bounds in global coordinates
  581. gdMode                     ds.l    1                ; offset: $2A (42)        ; device's current mode
  582. gdCCBytes                 ds.w    1                ; offset: $2E (46)        ; depth of expanded cursor data
  583. gdCCDepth                 ds.w    1                ; offset: $30 (48)        ; depth of expanded cursor data
  584. gdCCXData                 ds.l    1                ; offset: $32 (50)        ; Handle to cursor's expanded data
  585. gdCCXMask                 ds.l    1                ; offset: $36 (54)        ; Handle to cursor's expanded mask
  586. gdReserved                 ds.l    1                ; offset: $3A (58)        ; future use. MUST BE 0
  587. sizeof                     EQU *                    ; size:   $3E (62)
  588.                         ENDR
  589. ; typedef struct GDevice *                GDPtr
  590.  
  591. ; typedef GDPtr *                        GDHandle
  592.  
  593. GrafVars                RECORD 0
  594. rgbOpColor                 ds        RGBColor        ; offset: $0 (0)        ; color for addPin  subPin and average
  595. rgbHiliteColor             ds        RGBColor        ; offset: $6 (6)        ; color for hiliting
  596. pmFgColor                 ds.l    1                ; offset: $C (12)        ; palette Handle for foreground color
  597. pmFgIndex                 ds.w    1                ; offset: $10 (16)        ; index value for foreground
  598. pmBkColor                 ds.l    1                ; offset: $12 (18)        ; palette Handle for background color
  599. pmBkIndex                 ds.w    1                ; offset: $16 (22)        ; index value for background
  600. pmFlags                     ds.w    1                ; offset: $18 (24)        ; flags for Palette Manager
  601. sizeof                     EQU *                    ; size:   $1A (26)
  602.                         ENDR
  603. ; typedef struct GrafVars *                GVarPtr
  604.  
  605. ; typedef GVarPtr *                        GVarHandle
  606.  
  607. CQDProcs                RECORD 0
  608. textProc                 ds.l    1                ; offset: $0 (0)
  609. lineProc                 ds.l    1                ; offset: $4 (4)
  610. rectProc                 ds.l    1                ; offset: $8 (8)
  611. rRectProc                 ds.l    1                ; offset: $C (12)
  612. ovalProc                 ds.l    1                ; offset: $10 (16)
  613. arcProc                     ds.l    1                ; offset: $14 (20)
  614. polyProc                 ds.l    1                ; offset: $18 (24)
  615. rgnProc                     ds.l    1                ; offset: $1C (28)
  616. bitsProc                 ds.l    1                ; offset: $20 (32)
  617. commentProc                 ds.l    1                ; offset: $24 (36)
  618. txMeasProc                 ds.l    1                ; offset: $28 (40)
  619. getPicProc                 ds.l    1                ; offset: $2C (44)
  620. putPicProc                 ds.l    1                ; offset: $30 (48)
  621. opcodeProc                 ds.l    1                ; offset: $34 (52)
  622. newProc1                 ds.l    1                ; offset: $38 (56)        ;  this is the StdPix bottleneck -- see ImageCompression.h 
  623. glyphsProc                 ds.l    1                ; offset: $3C (60)        ;  was newProc2; now used in Unicode text drawing 
  624. newProc3                 ds.l    1                ; offset: $40 (64)
  625. newProc4                 ds.l    1                ; offset: $44 (68)
  626. newProc5                 ds.l    1                ; offset: $48 (72)
  627. newProc6                 ds.l    1                ; offset: $4C (76)
  628. sizeof                     EQU *                    ; size:   $50 (80)
  629.                         ENDR
  630. ; typedef struct CQDProcs *                CQDProcsPtr
  631.  
  632. CGrafPort                RECORD 0
  633. device                     ds.w    1                ; offset: $0 (0)
  634. portPixMap                 ds.l    1                ; offset: $2 (2)        ; port's pixel map
  635. portVersion                 ds.w    1                ; offset: $6 (6)        ; high 2 bits always set
  636. grafVars                 ds.l    1                ; offset: $8 (8)        ; Handle to more fields
  637. chExtra                     ds.w    1                ; offset: $C (12)        ; character extra
  638. pnLocHFrac                 ds.w    1                ; offset: $E (14)        ; pen fraction
  639. portRect                 ds        Rect            ; offset: $10 (16)
  640. visRgn                     ds.l    1                ; offset: $18 (24)
  641. clipRgn                     ds.l    1                ; offset: $1C (28)
  642. bkPixPat                 ds.l    1                ; offset: $20 (32)        ; background pattern
  643. rgbFgColor                 ds        RGBColor        ; offset: $24 (36)        ; RGB components of fg
  644. rgbBkColor                 ds        RGBColor        ; offset: $2A (42)        ; RGB components of bk
  645. pnLoc                     ds        Point            ; offset: $30 (48)
  646. pnSize                     ds        Point            ; offset: $34 (52)
  647. pnMode                     ds.w    1                ; offset: $38 (56)
  648. pnPixPat                 ds.l    1                ; offset: $3A (58)        ; pen's pattern
  649. fillPixPat                 ds.l    1                ; offset: $3E (62)        ; fill pattern
  650. pnVis                     ds.w    1                ; offset: $42 (66)
  651. txFont                     ds.w    1                ; offset: $44 (68)
  652. txFace                     ds.w    1                ; offset: $46 (70)        ; StyleField occupies 16-bits, but only first 8-bits are used
  653. txMode                     ds.w    1                ; offset: $48 (72)
  654. txSize                     ds.w    1                ; offset: $4A (74)
  655. spExtra                     ds.l    1                ; offset: $4C (76)
  656. fgColor                     ds.l    1                ; offset: $50 (80)
  657. bkColor                     ds.l    1                ; offset: $54 (84)
  658. colrBit                     ds.w    1                ; offset: $58 (88)
  659. patStretch                 ds.w    1                ; offset: $5A (90)
  660. picSave                     ds.l    1                ; offset: $5C (92)
  661. rgnSave                     ds.l    1                ; offset: $60 (96)
  662. polySave                 ds.l    1                ; offset: $64 (100)
  663. grafProcs                 ds.l    1                ; offset: $68 (104)
  664. sizeof                     EQU *                    ; size:   $6C (108)
  665.                         ENDR
  666. ; typedef struct CGrafPort *            CGrafPtr
  667.  
  668. ; typedef CGrafPtr                         CWindowPtr
  669.  
  670. ReqListRec                RECORD 0
  671. reqLSize                 ds.w    1                ; offset: $0 (0)        ; request list size
  672. reqLData                 ds.w    1                ; offset: $2 (2) <-- really an array of length one ; request list data
  673. sizeof                     EQU *                    ; size:   $4 (4)
  674.                         ENDR
  675. OpenCPicParams            RECORD 0
  676. srcRect                     ds        Rect            ; offset: $0 (0)
  677. hRes                     ds.l    1                ; offset: $8 (8)
  678. vRes                     ds.l    1                ; offset: $C (12)
  679. version                     ds.w    1                ; offset: $10 (16)
  680. reserved1                 ds.w    1                ; offset: $12 (18)
  681. reserved2                 ds.l    1                ; offset: $14 (20)
  682. sizeof                     EQU *                    ; size:   $18 (24)
  683.                         ENDR
  684.  
  685. kCursorImageMajorVersion        EQU        $0001
  686. kCursorImageMinorVersion        EQU        $0000
  687. CursorImageRec            RECORD 0
  688. majorVersion             ds.w    1                ; offset: $0 (0)
  689. minorVersion             ds.w    1                ; offset: $2 (2)
  690. cursorPixMap             ds.l    1                ; offset: $4 (4)
  691. cursorBitMask             ds.l    1                ; offset: $8 (8)
  692. sizeof                     EQU *                    ; size:   $C (12)
  693.                         ENDR
  694. ; typedef struct CursorImageRec *        CursorImagePtr
  695.  
  696. QDGlobals                RECORD 0
  697. privates                 ds.b    76                ; offset: $0 (0)
  698. randSeed                 ds.l    1                ; offset: $4C (76)
  699. screenBits                 ds        BitMap            ; offset: $50 (80)
  700. arrow                     ds        Cursor            ; offset: $5E (94)
  701. dkGray                     ds        Pattern            ; offset: $A2 (162)
  702. ltGray                     ds        Pattern            ; offset: $AA (170)
  703. gray                     ds        Pattern            ; offset: $B2 (178)
  704. black                     ds        Pattern            ; offset: $BA (186)
  705. white                     ds        Pattern            ; offset: $C2 (194)
  706. thePort                     ds.l    1                ; offset: $CA (202)
  707. sizeof                     EQU *                    ; size:   $CE (206)
  708.                         ENDR
  709. ; typedef struct QDGlobals *            QDGlobalsPtr
  710.  
  711. ; typedef QDGlobalsPtr *                QDGlobalsHdl
  712.  
  713.  
  714. ;    Often code written in assembly language is compiled outside of an
  715. ;    application environment.  In such cases, the Quickdraw globals
  716. ;    cannot be access normally (e.g. qd.black).  This kind of code (e.g.
  717. ;    INIT's) usually leaches off the currently install Quickdraw globals
  718. ;    by knowing that 0(a5) points to qd.thePort, as set by InitGraf().
  719. ;    
  720. ;    The record CurrentQDGlobals is defined for use in such circumstances.
  721. ;    It is biased so that thePort is at offset 0.  Below is an example
  722. ;    of using CurrentQDGlobals vs. the old assembly style:
  723. ;    
  724. ;    ; Get address of Quickdraw global's black into A0
  725. ;    
  726. ;        Old non-app way:
  727. ;                MOVE.L    0(A5),A0
  728. ;                LEA        black(A0),A0    ; black was EQU'ed to -16 in QuickEqu.a 
  729. ;    
  730. ;        New non-app way:
  731. ;                MOVE.L    0(A5),A0
  732. ;                LEA        CurrentQDGlobals.black(A0),A0
  733. ;    
  734. ;        New app way:
  735. ;                LEA        qd.black,A0        ; elsewhere: qd  DS    QDGlobals
  736.  
  737. CurrentQDGlobals         RECORD    {thePort},INCREMENT
  738. privates                 ds.b   76        ; offset: $FF36 (-202)
  739. randSeed                 ds.l   1        ; offset: $FF82 (-126)
  740. screenBits                 ds     BitMap    ; offset: $FF86 (-122)
  741. arrow                     ds     Cursor    ; offset: $FF94 (-108)
  742. dkGray                     ds     Pattern    ; offset: $FFD8 (-40)
  743. ltGray                     ds     Pattern    ; offset: $FFE0 (-32)
  744. gray                     ds     Pattern    ; offset: $FFE8 (-24)
  745. black                     ds     Pattern    ; offset: $FFF0 (-16)
  746. white                     ds     Pattern    ; offset: $FFF8 (-8)
  747. thePort                  ds.l   1        ; offset: $0000 (0)
  748. sizeof                     EQU    *-CurrentQDGlobals        ; size:   $CE   (206)
  749.                         ENDR
  750.  
  751.  
  752. GrafGlobals       EQU         0                         ; A5 offset to globptr
  753.  
  754.  
  755.  
  756. ;
  757. ; pascal void InitGraf(void *globalPtr)
  758. ;
  759.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  760.         _InitGraf:    OPWORD    $A86E
  761.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  762.         IMPORT_CFM_FUNCTION InitGraf
  763.     ENDIF
  764.  
  765. ;
  766. ; pascal void OpenPort(GrafPtr port)
  767. ;
  768.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  769.         _OpenPort:    OPWORD    $A86F
  770.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  771.         IMPORT_CFM_FUNCTION OpenPort
  772.     ENDIF
  773.  
  774. ;
  775. ; pascal void InitPort(GrafPtr port)
  776. ;
  777.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  778.         _InitPort:    OPWORD    $A86D
  779.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  780.         IMPORT_CFM_FUNCTION InitPort
  781.     ENDIF
  782.  
  783. ;
  784. ; pascal void ClosePort(GrafPtr port)
  785. ;
  786.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  787.         _ClosePort:    OPWORD    $A87D
  788.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  789.         IMPORT_CFM_FUNCTION ClosePort
  790.     ENDIF
  791.  
  792.     IF ¬ TARGET_OS_MAC THEN
  793. ;
  794. ; pascal OSErr LockPortBits(GrafPtr port)
  795. ;
  796.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  797.         IMPORT_CFM_FUNCTION LockPortBits
  798.     ENDIF
  799.  
  800. ;
  801. ; pascal OSErr UnlockPortBits(GrafPtr port)
  802. ;
  803.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  804.         IMPORT_CFM_FUNCTION UnlockPortBits
  805.     ENDIF
  806.  
  807. ;
  808. ; pascal OSErr UpdatePort(GrafPtr port)
  809. ;
  810.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  811.         IMPORT_CFM_FUNCTION UpdatePort
  812.     ENDIF
  813.  
  814. ;
  815. ; pascal void *GetPortNativeWindow(GrafPtr macPort)
  816. ;
  817.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  818.         IMPORT_CFM_FUNCTION GetPortNativeWindow
  819.     ENDIF
  820.  
  821. ;
  822. ; pascal GrafPtr GetNativeWindowPort(void *nativeWindow)
  823. ;
  824.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  825.         IMPORT_CFM_FUNCTION GetNativeWindowPort
  826.     ENDIF
  827.  
  828. ;
  829. ; pascal void *MacRegionToNativeRegion(RgnHandle macRegion)
  830. ;
  831.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  832.         IMPORT_CFM_FUNCTION MacRegionToNativeRegion
  833.     ENDIF
  834.  
  835. ;
  836. ; pascal RgnHandle NativeRegionToMacRegion(void *nativeRegion)
  837. ;
  838.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  839.         IMPORT_CFM_FUNCTION NativeRegionToMacRegion
  840.     ENDIF
  841.  
  842.     IF TARGET_OS_WIN32 THEN
  843. ;
  844. ; pascal void *GetPortHWND(GrafPtr port)
  845. ;
  846.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  847.         IMPORT_CFM_FUNCTION GetPortHWND
  848.     ENDIF
  849.  
  850. ;
  851. ; pascal GrafPtr GetHWNDPort(void *theHWND)
  852. ;
  853.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  854.         IMPORT_CFM_FUNCTION GetHWNDPort
  855.     ENDIF
  856.  
  857. ;
  858. ; pascal void *GetPortHDC(GrafPtr port)
  859. ;
  860.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  861.         IMPORT_CFM_FUNCTION GetPortHDC
  862.     ENDIF
  863.  
  864. ;
  865. ; pascal void *GetPortHBITMAP(GrafPtr port)
  866. ;
  867.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  868.         IMPORT_CFM_FUNCTION GetPortHBITMAP
  869.     ENDIF
  870.  
  871. ;
  872. ; pascal void *GetPortHPALETTE(GrafPtr port)
  873. ;
  874.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  875.         IMPORT_CFM_FUNCTION GetPortHPALETTE
  876.     ENDIF
  877.  
  878. ;
  879. ; pascal void *GetPortHFONT(GrafPtr port)
  880. ;
  881.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  882.         IMPORT_CFM_FUNCTION GetPortHFONT
  883.     ENDIF
  884.  
  885. ;
  886. ; pascal void *GetDIBFromPICT(PicHandle hPict)
  887. ;
  888.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  889.         IMPORT_CFM_FUNCTION GetDIBFromPICT
  890.     ENDIF
  891.  
  892. ;
  893. ; pascal PicHandle GetPICTFromDIB(void *h)
  894. ;
  895.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  896.         IMPORT_CFM_FUNCTION GetPICTFromDIB
  897.     ENDIF
  898.  
  899.     ENDIF    ; TARGET_OS_WIN32
  900.     ENDIF
  901. ;
  902. ; pascal void SetPort(GrafPtr port)
  903. ;
  904.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  905.         _SetPort:    OPWORD    $A873
  906.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  907.         IMPORT_CFM_FUNCTION SetPort
  908.     ENDIF
  909.  
  910. ;
  911. ; pascal void GetPort(GrafPtr *port)
  912. ;
  913.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  914.         _GetPort:    OPWORD    $A874
  915.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  916.         IMPORT_CFM_FUNCTION GetPort
  917.     ENDIF
  918.  
  919. ;
  920. ; pascal void GrafDevice(short device)
  921. ;
  922.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  923.         _GrafDevice:    OPWORD    $A872
  924.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  925.         IMPORT_CFM_FUNCTION GrafDevice
  926.     ENDIF
  927.  
  928. ;
  929. ; pascal void SetPortBits(const BitMap *bm)
  930. ;
  931.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  932.         _SetPortBits:    OPWORD    $A875
  933.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  934.         IMPORT_CFM_FUNCTION SetPortBits
  935.     ENDIF
  936.  
  937. ;
  938. ; pascal void PortSize(short width, short height)
  939. ;
  940.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  941.         _PortSize:    OPWORD    $A876
  942.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  943.         IMPORT_CFM_FUNCTION PortSize
  944.     ENDIF
  945.  
  946. ;
  947. ; pascal void MovePortTo(short leftGlobal, short topGlobal)
  948. ;
  949.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  950.         _MovePortTo:    OPWORD    $A877
  951.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  952.         IMPORT_CFM_FUNCTION MovePortTo
  953.     ENDIF
  954.  
  955. ;
  956. ; pascal void SetOrigin(short h, short v)
  957. ;
  958.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  959.         _SetOrigin:    OPWORD    $A878
  960.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  961.         IMPORT_CFM_FUNCTION SetOrigin
  962.     ENDIF
  963.  
  964. ;
  965. ; pascal void SetClip(RgnHandle rgn)
  966. ;
  967.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  968.         _SetClip:    OPWORD    $A879
  969.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  970.         IMPORT_CFM_FUNCTION SetClip
  971.     ENDIF
  972.  
  973. ;
  974. ; pascal void GetClip(RgnHandle rgn)
  975. ;
  976.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  977.         _GetClip:    OPWORD    $A87A
  978.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  979.         IMPORT_CFM_FUNCTION GetClip
  980.     ENDIF
  981.  
  982. ;
  983. ; pascal void ClipRect(const Rect *r)
  984. ;
  985.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  986.         _ClipRect:    OPWORD    $A87B
  987.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  988.         IMPORT_CFM_FUNCTION ClipRect
  989.     ENDIF
  990.  
  991. ;
  992. ; pascal void BackPat(const Pattern *pat)
  993. ;
  994.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  995.         _BackPat:    OPWORD    $A87C
  996.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  997.         IMPORT_CFM_FUNCTION BackPat
  998.     ENDIF
  999.  
  1000. ;
  1001. ; pascal void InitCursor(void )
  1002. ;
  1003.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1004.         _InitCursor:    OPWORD    $A850
  1005.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1006.         IMPORT_CFM_FUNCTION InitCursor
  1007.     ENDIF
  1008.  
  1009. ;
  1010. ; pascal void SetCursor(const Cursor *crsr)
  1011. ;
  1012.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1013.         _SetCursor:    OPWORD    $A851
  1014.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1015.         IMPORT_CFM_FUNCTION SetCursor
  1016.     ENDIF
  1017.  
  1018. ;
  1019. ; pascal void HideCursor(void )
  1020. ;
  1021.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1022.         _HideCursor:    OPWORD    $A852
  1023.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1024.         IMPORT_CFM_FUNCTION HideCursor
  1025.     ENDIF
  1026.  
  1027. ;
  1028. ; pascal void ShowCursor(void )
  1029. ;
  1030.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1031.         _ShowCursor:    OPWORD    $A853
  1032.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1033.         IMPORT_CFM_FUNCTION ShowCursor
  1034.     ENDIF
  1035.  
  1036. ;
  1037. ; pascal void ObscureCursor(void )
  1038. ;
  1039.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1040.         _ObscureCursor:    OPWORD    $A856
  1041.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1042.         IMPORT_CFM_FUNCTION ObscureCursor
  1043.     ENDIF
  1044.  
  1045. ;
  1046. ; pascal void HidePen(void )
  1047. ;
  1048.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1049.         _HidePen:    OPWORD    $A896
  1050.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1051.         IMPORT_CFM_FUNCTION HidePen
  1052.     ENDIF
  1053.  
  1054. ;
  1055. ; pascal void ShowPen(void )
  1056. ;
  1057.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1058.         _ShowPen:    OPWORD    $A897
  1059.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1060.         IMPORT_CFM_FUNCTION ShowPen
  1061.     ENDIF
  1062.  
  1063. ;
  1064. ; pascal void GetPen(Point *pt)
  1065. ;
  1066.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1067.         _GetPen:    OPWORD    $A89A
  1068.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1069.         IMPORT_CFM_FUNCTION GetPen
  1070.     ENDIF
  1071.  
  1072. ;
  1073. ; pascal void GetPenState(PenState *pnState)
  1074. ;
  1075.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1076.         _GetPenState:    OPWORD    $A898
  1077.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1078.         IMPORT_CFM_FUNCTION GetPenState
  1079.     ENDIF
  1080.  
  1081. ;
  1082. ; pascal void SetPenState(const PenState *pnState)
  1083. ;
  1084.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1085.         _SetPenState:    OPWORD    $A899
  1086.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1087.         IMPORT_CFM_FUNCTION SetPenState
  1088.     ENDIF
  1089.  
  1090. ;
  1091. ; pascal void PenSize(short width, short height)
  1092. ;
  1093.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1094.         _PenSize:    OPWORD    $A89B
  1095.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1096.         IMPORT_CFM_FUNCTION PenSize
  1097.     ENDIF
  1098.  
  1099. ;
  1100. ; pascal void PenMode(short mode)
  1101. ;
  1102.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1103.         _PenMode:    OPWORD    $A89C
  1104.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1105.         IMPORT_CFM_FUNCTION PenMode
  1106.     ENDIF
  1107.  
  1108. ;
  1109. ; pascal void PenPat(const Pattern *pat)
  1110. ;
  1111.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1112.         _PenPat:    OPWORD    $A89D
  1113.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1114.         IMPORT_CFM_FUNCTION PenPat
  1115.     ENDIF
  1116.  
  1117. ;
  1118. ; pascal void PenNormal(void )
  1119. ;
  1120.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1121.         _PenNormal:    OPWORD    $A89E
  1122.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1123.         IMPORT_CFM_FUNCTION PenNormal
  1124.     ENDIF
  1125.  
  1126. ;
  1127. ; pascal void MoveTo(short h, short v)
  1128. ;
  1129.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1130.         _MoveTo:    OPWORD    $A893
  1131.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1132.         IMPORT_CFM_FUNCTION MoveTo
  1133.     ENDIF
  1134.  
  1135. ;
  1136. ; pascal void Move(short dh, short dv)
  1137. ;
  1138.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1139.         _Move:    OPWORD    $A894
  1140.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1141.         IMPORT_CFM_FUNCTION Move
  1142.     ENDIF
  1143.  
  1144. ;
  1145. ; pascal void LineTo(short h, short v)
  1146. ;
  1147.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1148.         _LineTo:    OPWORD    $A891
  1149.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1150.         IMPORT_CFM_FUNCTION LineTo
  1151.     ENDIF
  1152.  
  1153. ;
  1154. ; pascal void Line(short dh, short dv)
  1155. ;
  1156.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1157.         _Line:    OPWORD    $A892
  1158.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1159.         IMPORT_CFM_FUNCTION Line
  1160.     ENDIF
  1161.  
  1162. ;
  1163. ; pascal void ForeColor(long color)
  1164. ;
  1165.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1166.         _ForeColor:    OPWORD    $A862
  1167.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1168.         IMPORT_CFM_FUNCTION ForeColor
  1169.     ENDIF
  1170.  
  1171. ;
  1172. ; pascal void BackColor(long color)
  1173. ;
  1174.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1175.         _BackColor:    OPWORD    $A863
  1176.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1177.         IMPORT_CFM_FUNCTION BackColor
  1178.     ENDIF
  1179.  
  1180. ;
  1181. ; pascal void ColorBit(short whichBit)
  1182. ;
  1183.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1184.         _ColorBit:    OPWORD    $A864
  1185.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1186.         IMPORT_CFM_FUNCTION ColorBit
  1187.     ENDIF
  1188.  
  1189. ;
  1190. ; pascal void SetRect(Rect *r, short left, short top, short right, short bottom)
  1191. ;
  1192.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1193.         _SetRect:    OPWORD    $A8A7
  1194.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1195.         IMPORT_CFM_FUNCTION SetRect
  1196.     ENDIF
  1197.  
  1198. ;
  1199. ; pascal void OffsetRect(Rect *r, short dh, short dv)
  1200. ;
  1201.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1202.         _OffsetRect:    OPWORD    $A8A8
  1203.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1204.         IMPORT_CFM_FUNCTION OffsetRect
  1205.     ENDIF
  1206.  
  1207. ;
  1208. ; pascal void InsetRect(Rect *r, short dh, short dv)
  1209. ;
  1210.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1211.         _InsetRect:    OPWORD    $A8A9
  1212.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1213.         IMPORT_CFM_FUNCTION InsetRect
  1214.     ENDIF
  1215.  
  1216. ;
  1217. ; pascal Boolean SectRect(const Rect *src1, const Rect *src2, Rect *dstRect)
  1218. ;
  1219.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1220.         _SectRect:    OPWORD    $A8AA
  1221.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1222.         IMPORT_CFM_FUNCTION SectRect
  1223.     ENDIF
  1224.  
  1225. ;
  1226. ; pascal void UnionRect(const Rect *src1, const Rect *src2, Rect *dstRect)
  1227. ;
  1228.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1229.         _UnionRect:    OPWORD    $A8AB
  1230.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1231.         IMPORT_CFM_FUNCTION UnionRect
  1232.     ENDIF
  1233.  
  1234. ;
  1235. ; pascal Boolean EqualRect(const Rect *rect1, const Rect *rect2)
  1236. ;
  1237.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1238.         _EqualRect:    OPWORD    $A8A6
  1239.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1240.         IMPORT_CFM_FUNCTION EqualRect
  1241.     ENDIF
  1242.  
  1243. ;
  1244. ; pascal Boolean EmptyRect(const Rect *r)
  1245. ;
  1246.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1247.         _EmptyRect:    OPWORD    $A8AE
  1248.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1249.         IMPORT_CFM_FUNCTION EmptyRect
  1250.     ENDIF
  1251.  
  1252. ;
  1253. ; pascal void FrameRect(const Rect *r)
  1254. ;
  1255.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1256.         _FrameRect:    OPWORD    $A8A1
  1257.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1258.         IMPORT_CFM_FUNCTION FrameRect
  1259.     ENDIF
  1260.  
  1261. ;
  1262. ; pascal void PaintRect(const Rect *r)
  1263. ;
  1264.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1265.         _PaintRect:    OPWORD    $A8A2
  1266.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1267.         IMPORT_CFM_FUNCTION PaintRect
  1268.     ENDIF
  1269.  
  1270. ;
  1271. ; pascal void EraseRect(const Rect *r)
  1272. ;
  1273.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1274.         _EraseRect:    OPWORD    $A8A3
  1275.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1276.         IMPORT_CFM_FUNCTION EraseRect
  1277.     ENDIF
  1278.  
  1279. ;
  1280. ; pascal void InvertRect(const Rect *r)
  1281. ;
  1282.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1283.         _InvertRect:    OPWORD    $A8A4
  1284.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1285.         IMPORT_CFM_FUNCTION InvertRect
  1286.     ENDIF
  1287.  
  1288. ;
  1289. ; pascal void FillRect(const Rect *r, const Pattern *pat)
  1290. ;
  1291.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1292.         _FillRect:    OPWORD    $A8A5
  1293.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1294.         IMPORT_CFM_FUNCTION FillRect
  1295.     ENDIF
  1296.  
  1297. ;
  1298. ; pascal void FrameOval(const Rect *r)
  1299. ;
  1300.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1301.         _FrameOval:    OPWORD    $A8B7
  1302.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1303.         IMPORT_CFM_FUNCTION FrameOval
  1304.     ENDIF
  1305.  
  1306. ;
  1307. ; pascal void PaintOval(const Rect *r)
  1308. ;
  1309.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1310.         _PaintOval:    OPWORD    $A8B8
  1311.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1312.         IMPORT_CFM_FUNCTION PaintOval
  1313.     ENDIF
  1314.  
  1315. ;
  1316. ; pascal void EraseOval(const Rect *r)
  1317. ;
  1318.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1319.         _EraseOval:    OPWORD    $A8B9
  1320.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1321.         IMPORT_CFM_FUNCTION EraseOval
  1322.     ENDIF
  1323.  
  1324. ;
  1325. ; pascal void InvertOval(const Rect *r)
  1326. ;
  1327.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1328.         _InvertOval:    OPWORD    $A8BA
  1329.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1330.         IMPORT_CFM_FUNCTION InvertOval
  1331.     ENDIF
  1332.  
  1333. ;
  1334. ; pascal void FillOval(const Rect *r, const Pattern *pat)
  1335. ;
  1336.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1337.         _FillOval:    OPWORD    $A8BB
  1338.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1339.         IMPORT_CFM_FUNCTION FillOval
  1340.     ENDIF
  1341.  
  1342. ;
  1343. ; pascal void FrameRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1344. ;
  1345.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1346.         _FrameRoundRect:    OPWORD    $A8B0
  1347.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1348.         IMPORT_CFM_FUNCTION FrameRoundRect
  1349.     ENDIF
  1350.  
  1351. ;
  1352. ; pascal void PaintRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1353. ;
  1354.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1355.         _PaintRoundRect:    OPWORD    $A8B1
  1356.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1357.         IMPORT_CFM_FUNCTION PaintRoundRect
  1358.     ENDIF
  1359.  
  1360. ;
  1361. ; pascal void EraseRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1362. ;
  1363.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1364.         _EraseRoundRect:    OPWORD    $A8B2
  1365.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1366.         IMPORT_CFM_FUNCTION EraseRoundRect
  1367.     ENDIF
  1368.  
  1369. ;
  1370. ; pascal void InvertRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1371. ;
  1372.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1373.         _InvertRoundRect:    OPWORD    $A8B3
  1374.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1375.         IMPORT_CFM_FUNCTION InvertRoundRect
  1376.     ENDIF
  1377.  
  1378. ;
  1379. ; pascal void FillRoundRect(const Rect *r, short ovalWidth, short ovalHeight, const Pattern *pat)
  1380. ;
  1381.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1382.         _FillRoundRect:    OPWORD    $A8B4
  1383.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1384.         IMPORT_CFM_FUNCTION FillRoundRect
  1385.     ENDIF
  1386.  
  1387. ;
  1388. ; pascal void FrameArc(const Rect *r, short startAngle, short arcAngle)
  1389. ;
  1390.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1391.         _FrameArc:    OPWORD    $A8BE
  1392.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1393.         IMPORT_CFM_FUNCTION FrameArc
  1394.     ENDIF
  1395.  
  1396. ;
  1397. ; pascal void PaintArc(const Rect *r, short startAngle, short arcAngle)
  1398. ;
  1399.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1400.         _PaintArc:    OPWORD    $A8BF
  1401.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1402.         IMPORT_CFM_FUNCTION PaintArc
  1403.     ENDIF
  1404.  
  1405. ;
  1406. ; pascal void EraseArc(const Rect *r, short startAngle, short arcAngle)
  1407. ;
  1408.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1409.         _EraseArc:    OPWORD    $A8C0
  1410.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1411.         IMPORT_CFM_FUNCTION EraseArc
  1412.     ENDIF
  1413.  
  1414. ;
  1415. ; pascal void InvertArc(const Rect *r, short startAngle, short arcAngle)
  1416. ;
  1417.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1418.         _InvertArc:    OPWORD    $A8C1
  1419.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1420.         IMPORT_CFM_FUNCTION InvertArc
  1421.     ENDIF
  1422.  
  1423. ;
  1424. ; pascal void FillArc(const Rect *r, short startAngle, short arcAngle, const Pattern *pat)
  1425. ;
  1426.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1427.         _FillArc:    OPWORD    $A8C2
  1428.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1429.         IMPORT_CFM_FUNCTION FillArc
  1430.     ENDIF
  1431.  
  1432. ;
  1433. ; pascal RgnHandle NewRgn(void )
  1434. ;
  1435.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1436.         _NewRgn:    OPWORD    $A8D8
  1437.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1438.         IMPORT_CFM_FUNCTION NewRgn
  1439.     ENDIF
  1440.  
  1441. ;
  1442. ; pascal void OpenRgn(void )
  1443. ;
  1444.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1445.         _OpenRgn:    OPWORD    $A8DA
  1446.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1447.         IMPORT_CFM_FUNCTION OpenRgn
  1448.     ENDIF
  1449.  
  1450. ;
  1451. ; pascal void CloseRgn(RgnHandle dstRgn)
  1452. ;
  1453.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1454.         _CloseRgn:    OPWORD    $A8DB
  1455.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1456.         IMPORT_CFM_FUNCTION CloseRgn
  1457.     ENDIF
  1458.  
  1459. ;
  1460. ; pascal OSErr BitMapToRegion(RgnHandle region, const BitMap *bMap)
  1461. ;
  1462.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1463.         _BitMapToRegion:    OPWORD    $A8D7
  1464.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1465.         IMPORT_CFM_FUNCTION BitMapToRegion
  1466.     ENDIF
  1467.  
  1468. ;
  1469. ; pascal void DisposeRgn(RgnHandle rgn)
  1470. ;
  1471.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1472.         _DisposeRgn:    OPWORD    $A8D9
  1473.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1474.         IMPORT_CFM_FUNCTION DisposeRgn
  1475.     ENDIF
  1476.  
  1477. ;
  1478. ; pascal void CopyRgn(RgnHandle srcRgn, RgnHandle dstRgn)
  1479. ;
  1480.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1481.         _CopyRgn:    OPWORD    $A8DC
  1482.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1483.         IMPORT_CFM_FUNCTION CopyRgn
  1484.     ENDIF
  1485.  
  1486. ;
  1487. ; pascal void SetEmptyRgn(RgnHandle rgn)
  1488. ;
  1489.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1490.         _SetEmptyRgn:    OPWORD    $A8DD
  1491.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1492.         IMPORT_CFM_FUNCTION SetEmptyRgn
  1493.     ENDIF
  1494.  
  1495. ;
  1496. ; pascal void SetRectRgn(RgnHandle rgn, short left, short top, short right, short bottom)
  1497. ;
  1498.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1499.         _SetRectRgn:    OPWORD    $A8DE
  1500.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1501.         IMPORT_CFM_FUNCTION SetRectRgn
  1502.     ENDIF
  1503.  
  1504. ;
  1505. ; pascal void RectRgn(RgnHandle rgn, const Rect *r)
  1506. ;
  1507.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1508.         _RectRgn:    OPWORD    $A8DF
  1509.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1510.         IMPORT_CFM_FUNCTION RectRgn
  1511.     ENDIF
  1512.  
  1513. ;
  1514. ; pascal void OffsetRgn(RgnHandle rgn, short dh, short dv)
  1515. ;
  1516.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1517.         _OffsetRgn:    OPWORD    $A8E0
  1518.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1519.         IMPORT_CFM_FUNCTION OffsetRgn
  1520.     ENDIF
  1521.  
  1522. ;
  1523. ; pascal void InsetRgn(RgnHandle rgn, short dh, short dv)
  1524. ;
  1525.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1526.         _InsetRgn:    OPWORD    $A8E1
  1527.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1528.         IMPORT_CFM_FUNCTION InsetRgn
  1529.     ENDIF
  1530.  
  1531. ;
  1532. ; pascal void SectRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1533. ;
  1534.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1535.         _SectRgn:    OPWORD    $A8E4
  1536.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1537.         IMPORT_CFM_FUNCTION SectRgn
  1538.     ENDIF
  1539.  
  1540. ;
  1541. ; pascal void UnionRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1542. ;
  1543.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1544.         _UnionRgn:    OPWORD    $A8E5
  1545.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1546.         IMPORT_CFM_FUNCTION UnionRgn
  1547.     ENDIF
  1548.  
  1549. ;
  1550. ; pascal void DiffRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1551. ;
  1552.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1553.         _DiffRgn:    OPWORD    $A8E6
  1554.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1555.         IMPORT_CFM_FUNCTION DiffRgn
  1556.     ENDIF
  1557.  
  1558. ;
  1559. ; pascal void XorRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1560. ;
  1561.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1562.         _XorRgn:    OPWORD    $A8E7
  1563.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1564.         IMPORT_CFM_FUNCTION XorRgn
  1565.     ENDIF
  1566.  
  1567. ;
  1568. ; pascal Boolean RectInRgn(const Rect *r, RgnHandle rgn)
  1569. ;
  1570.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1571.         _RectInRgn:    OPWORD    $A8E9
  1572.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1573.         IMPORT_CFM_FUNCTION RectInRgn
  1574.     ENDIF
  1575.  
  1576. ;
  1577. ; pascal Boolean EqualRgn(RgnHandle rgnA, RgnHandle rgnB)
  1578. ;
  1579.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1580.         _EqualRgn:    OPWORD    $A8E3
  1581.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1582.         IMPORT_CFM_FUNCTION EqualRgn
  1583.     ENDIF
  1584.  
  1585. ;
  1586. ; pascal Boolean EmptyRgn(RgnHandle rgn)
  1587. ;
  1588.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1589.         _EmptyRgn:    OPWORD    $A8E2
  1590.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1591.         IMPORT_CFM_FUNCTION EmptyRgn
  1592.     ENDIF
  1593.  
  1594. ;
  1595. ; pascal void FrameRgn(RgnHandle rgn)
  1596. ;
  1597.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1598.         _FrameRgn:    OPWORD    $A8D2
  1599.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1600.         IMPORT_CFM_FUNCTION FrameRgn
  1601.     ENDIF
  1602.  
  1603. ;
  1604. ; pascal void PaintRgn(RgnHandle rgn)
  1605. ;
  1606.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1607.         _PaintRgn:    OPWORD    $A8D3
  1608.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1609.         IMPORT_CFM_FUNCTION PaintRgn
  1610.     ENDIF
  1611.  
  1612. ;
  1613. ; pascal void EraseRgn(RgnHandle rgn)
  1614. ;
  1615.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1616.         _EraseRgn:    OPWORD    $A8D4
  1617.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1618.         IMPORT_CFM_FUNCTION EraseRgn
  1619.     ENDIF
  1620.  
  1621. ;
  1622. ; pascal void InvertRgn(RgnHandle rgn)
  1623. ;
  1624.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1625.         _InvertRgn:    OPWORD    $A8D5
  1626.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1627.         IMPORT_CFM_FUNCTION InvertRgn
  1628.     ENDIF
  1629.  
  1630. ;
  1631. ; pascal void FillRgn(RgnHandle rgn, const Pattern *pat)
  1632. ;
  1633.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1634.         _FillRgn:    OPWORD    $A8D6
  1635.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1636.         IMPORT_CFM_FUNCTION FillRgn
  1637.     ENDIF
  1638.  
  1639. ;
  1640. ; pascal void ScrollRect(const Rect *r, short dh, short dv, RgnHandle updateRgn)
  1641. ;
  1642.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1643.         _ScrollRect:    OPWORD    $A8EF
  1644.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1645.         IMPORT_CFM_FUNCTION ScrollRect
  1646.     ENDIF
  1647.  
  1648. ;
  1649. ; pascal void CopyBits(const BitMap *srcBits, const BitMap *dstBits, const Rect *srcRect, const Rect *dstRect, short mode, RgnHandle maskRgn)
  1650. ;
  1651.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1652.         _CopyBits:    OPWORD    $A8EC
  1653.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1654.         IMPORT_CFM_FUNCTION CopyBits
  1655.     ENDIF
  1656.  
  1657. ;
  1658. ; pascal void SeedFill(const void *srcPtr, void *dstPtr, short srcRow, short dstRow, short height, short words, short seedH, short seedV)
  1659. ;
  1660.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1661.         _SeedFill:    OPWORD    $A839
  1662.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1663.         IMPORT_CFM_FUNCTION SeedFill
  1664.     ENDIF
  1665.  
  1666. ;
  1667. ; pascal void CalcMask(const void *srcPtr, void *dstPtr, short srcRow, short dstRow, short height, short words)
  1668. ;
  1669.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1670.         _CalcMask:    OPWORD    $A838
  1671.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1672.         IMPORT_CFM_FUNCTION CalcMask
  1673.     ENDIF
  1674.  
  1675. ;
  1676. ; pascal void CopyMask(const BitMap *srcBits, const BitMap *maskBits, const BitMap *dstBits, const Rect *srcRect, const Rect *maskRect, const Rect *dstRect)
  1677. ;
  1678.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1679.         _CopyMask:    OPWORD    $A817
  1680.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1681.         IMPORT_CFM_FUNCTION CopyMask
  1682.     ENDIF
  1683.  
  1684. ;
  1685. ; pascal PicHandle OpenPicture(const Rect *picFrame)
  1686. ;
  1687.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1688.         _OpenPicture:    OPWORD    $A8F3
  1689.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1690.         IMPORT_CFM_FUNCTION OpenPicture
  1691.     ENDIF
  1692.  
  1693. ;
  1694. ; pascal void PicComment(short kind, short dataSize, Handle dataHandle)
  1695. ;
  1696.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1697.         _PicComment:    OPWORD    $A8F2
  1698.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1699.         IMPORT_CFM_FUNCTION PicComment
  1700.     ENDIF
  1701.  
  1702. ;
  1703. ; pascal void ClosePicture(void )
  1704. ;
  1705.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1706.         _ClosePicture:    OPWORD    $A8F4
  1707.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1708.         IMPORT_CFM_FUNCTION ClosePicture
  1709.     ENDIF
  1710.  
  1711. ;
  1712. ; pascal void DrawPicture(PicHandle myPicture, const Rect *dstRect)
  1713. ;
  1714.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1715.         _DrawPicture:    OPWORD    $A8F6
  1716.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1717.         IMPORT_CFM_FUNCTION DrawPicture
  1718.     ENDIF
  1719.  
  1720. ;
  1721. ; pascal void KillPicture(PicHandle myPicture)
  1722. ;
  1723.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1724.         _KillPicture:    OPWORD    $A8F5
  1725.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1726.         IMPORT_CFM_FUNCTION KillPicture
  1727.     ENDIF
  1728.  
  1729. ;
  1730. ; pascal PolyHandle OpenPoly(void )
  1731. ;
  1732.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1733.         _OpenPoly:    OPWORD    $A8CB
  1734.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1735.         IMPORT_CFM_FUNCTION OpenPoly
  1736.     ENDIF
  1737.  
  1738. ;
  1739. ; pascal void ClosePoly(void )
  1740. ;
  1741.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1742.         _ClosePoly:    OPWORD    $A8CC
  1743.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1744.         IMPORT_CFM_FUNCTION ClosePoly
  1745.     ENDIF
  1746.  
  1747. ;
  1748. ; pascal void KillPoly(PolyHandle poly)
  1749. ;
  1750.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1751.         _KillPoly:    OPWORD    $A8CD
  1752.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1753.         IMPORT_CFM_FUNCTION KillPoly
  1754.     ENDIF
  1755.  
  1756. ;
  1757. ; pascal void OffsetPoly(PolyHandle poly, short dh, short dv)
  1758. ;
  1759.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1760.         _OffsetPoly:    OPWORD    $A8CE
  1761.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1762.         IMPORT_CFM_FUNCTION OffsetPoly
  1763.     ENDIF
  1764.  
  1765. ;
  1766. ; pascal void FramePoly(PolyHandle poly)
  1767. ;
  1768.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1769.         _FramePoly:    OPWORD    $A8C6
  1770.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1771.         IMPORT_CFM_FUNCTION FramePoly
  1772.     ENDIF
  1773.  
  1774. ;
  1775. ; pascal void PaintPoly(PolyHandle poly)
  1776. ;
  1777.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1778.         _PaintPoly:    OPWORD    $A8C7
  1779.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1780.         IMPORT_CFM_FUNCTION PaintPoly
  1781.     ENDIF
  1782.  
  1783. ;
  1784. ; pascal void ErasePoly(PolyHandle poly)
  1785. ;
  1786.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1787.         _ErasePoly:    OPWORD    $A8C8
  1788.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1789.         IMPORT_CFM_FUNCTION ErasePoly
  1790.     ENDIF
  1791.  
  1792. ;
  1793. ; pascal void InvertPoly(PolyHandle poly)
  1794. ;
  1795.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1796.         _InvertPoly:    OPWORD    $A8C9
  1797.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1798.         IMPORT_CFM_FUNCTION InvertPoly
  1799.     ENDIF
  1800.  
  1801. ;
  1802. ; pascal void FillPoly(PolyHandle poly, const Pattern *pat)
  1803. ;
  1804.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1805.         _FillPoly:    OPWORD    $A8CA
  1806.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1807.         IMPORT_CFM_FUNCTION FillPoly
  1808.     ENDIF
  1809.  
  1810. ;
  1811. ; pascal void SetPt(Point *pt, short h, short v)
  1812. ;
  1813.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1814.         _SetPt:    OPWORD    $A880
  1815.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1816.         IMPORT_CFM_FUNCTION SetPt
  1817.     ENDIF
  1818.  
  1819. ;
  1820. ; pascal void LocalToGlobal(Point *pt)
  1821. ;
  1822.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1823.         _LocalToGlobal:    OPWORD    $A870
  1824.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1825.         IMPORT_CFM_FUNCTION LocalToGlobal
  1826.     ENDIF
  1827.  
  1828. ;
  1829. ; pascal void GlobalToLocal(Point *pt)
  1830. ;
  1831.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1832.         _GlobalToLocal:    OPWORD    $A871
  1833.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1834.         IMPORT_CFM_FUNCTION GlobalToLocal
  1835.     ENDIF
  1836.  
  1837. ;
  1838. ; pascal short Random(void )
  1839. ;
  1840.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1841.         _Random:    OPWORD    $A861
  1842.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1843.         IMPORT_CFM_FUNCTION Random
  1844.     ENDIF
  1845.  
  1846. ;
  1847. ; pascal void StuffHex(void *thingPtr, ConstStr255Param s)
  1848. ;
  1849.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1850.         _StuffHex:    OPWORD    $A866
  1851.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1852.         IMPORT_CFM_FUNCTION StuffHex
  1853.     ENDIF
  1854.  
  1855. ;
  1856. ; pascal Boolean GetPixel(short h, short v)
  1857. ;
  1858.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1859.         _GetPixel:    OPWORD    $A865
  1860.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1861.         IMPORT_CFM_FUNCTION GetPixel
  1862.     ENDIF
  1863.  
  1864. ;
  1865. ; pascal void ScalePt(Point *pt, const Rect *srcRect, const Rect *dstRect)
  1866. ;
  1867.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1868.         _ScalePt:    OPWORD    $A8F8
  1869.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1870.         IMPORT_CFM_FUNCTION ScalePt
  1871.     ENDIF
  1872.  
  1873. ;
  1874. ; pascal void MapPt(Point *pt, const Rect *srcRect, const Rect *dstRect)
  1875. ;
  1876.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1877.         _MapPt:    OPWORD    $A8F9
  1878.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1879.         IMPORT_CFM_FUNCTION MapPt
  1880.     ENDIF
  1881.  
  1882. ;
  1883. ; pascal void MapRect(Rect *r, const Rect *srcRect, const Rect *dstRect)
  1884. ;
  1885.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1886.         _MapRect:    OPWORD    $A8FA
  1887.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1888.         IMPORT_CFM_FUNCTION MapRect
  1889.     ENDIF
  1890.  
  1891. ;
  1892. ; pascal void MapRgn(RgnHandle rgn, const Rect *srcRect, const Rect *dstRect)
  1893. ;
  1894.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1895.         _MapRgn:    OPWORD    $A8FB
  1896.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1897.         IMPORT_CFM_FUNCTION MapRgn
  1898.     ENDIF
  1899.  
  1900. ;
  1901. ; pascal void MapPoly(PolyHandle poly, const Rect *srcRect, const Rect *dstRect)
  1902. ;
  1903.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1904.         _MapPoly:    OPWORD    $A8FC
  1905.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1906.         IMPORT_CFM_FUNCTION MapPoly
  1907.     ENDIF
  1908.  
  1909. ;
  1910. ; pascal void SetStdProcs(QDProcs *procs)
  1911. ;
  1912.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1913.         _SetStdProcs:    OPWORD    $A8EA
  1914.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1915.         IMPORT_CFM_FUNCTION SetStdProcs
  1916.     ENDIF
  1917.  
  1918. ;
  1919. ; pascal void StdRect(GrafVerb verb, const Rect *r)
  1920. ;
  1921.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1922.         _StdRect:    OPWORD    $A8A0
  1923.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1924.         IMPORT_CFM_FUNCTION StdRect
  1925.     ENDIF
  1926.  
  1927. ;
  1928. ; pascal void StdRRect(GrafVerb verb, const Rect *r, short ovalWidth, short ovalHeight)
  1929. ;
  1930.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1931.         _StdRRect:    OPWORD    $A8AF
  1932.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1933.         IMPORT_CFM_FUNCTION StdRRect
  1934.     ENDIF
  1935.  
  1936. ;
  1937. ; pascal void StdOval(GrafVerb verb, const Rect *r)
  1938. ;
  1939.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1940.         _StdOval:    OPWORD    $A8B6
  1941.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1942.         IMPORT_CFM_FUNCTION StdOval
  1943.     ENDIF
  1944.  
  1945. ;
  1946. ; pascal void StdArc(GrafVerb verb, const Rect *r, short startAngle, short arcAngle)
  1947. ;
  1948.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1949.         _StdArc:    OPWORD    $A8BD
  1950.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1951.         IMPORT_CFM_FUNCTION StdArc
  1952.     ENDIF
  1953.  
  1954. ;
  1955. ; pascal void StdPoly(GrafVerb verb, PolyHandle poly)
  1956. ;
  1957.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1958.         _StdPoly:    OPWORD    $A8C5
  1959.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1960.         IMPORT_CFM_FUNCTION StdPoly
  1961.     ENDIF
  1962.  
  1963. ;
  1964. ; pascal void StdRgn(GrafVerb verb, RgnHandle rgn)
  1965. ;
  1966.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1967.         _StdRgn:    OPWORD    $A8D1
  1968.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1969.         IMPORT_CFM_FUNCTION StdRgn
  1970.     ENDIF
  1971.  
  1972. ;
  1973. ; pascal void StdBits(const BitMap *srcBits, const Rect *srcRect, const Rect *dstRect, short mode, RgnHandle maskRgn)
  1974. ;
  1975.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1976.         _StdBits:    OPWORD    $A8EB
  1977.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1978.         IMPORT_CFM_FUNCTION StdBits
  1979.     ENDIF
  1980.  
  1981. ;
  1982. ; pascal void StdComment(short kind, short dataSize, Handle dataHandle)
  1983. ;
  1984.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1985.         _StdComment:    OPWORD    $A8F1
  1986.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1987.         IMPORT_CFM_FUNCTION StdComment
  1988.     ENDIF
  1989.  
  1990. ;
  1991. ; pascal void StdGetPic(void *dataPtr, short byteCount)
  1992. ;
  1993.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1994.         _StdGetPic:    OPWORD    $A8EE
  1995.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1996.         IMPORT_CFM_FUNCTION StdGetPic
  1997.     ENDIF
  1998.  
  1999. ;
  2000. ; pascal void StdPutPic(const void *dataPtr, short byteCount)
  2001. ;
  2002.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2003.         _StdPutPic:    OPWORD    $A8F0
  2004.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2005.         IMPORT_CFM_FUNCTION StdPutPic
  2006.     ENDIF
  2007.  
  2008. ;
  2009. ; pascal void StdOpcode(const Rect *fromRect, const Rect *toRect, UInt16 opcode, SInt16 version)
  2010. ;
  2011.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2012.         _StdOpcode:    OPWORD    $ABF8
  2013.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2014.         IMPORT_CFM_FUNCTION StdOpcode
  2015.     ENDIF
  2016.  
  2017. ;
  2018. ; pascal void AddPt(Point src, Point *dst)
  2019. ;
  2020.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2021.         _AddPt:    OPWORD    $A87E
  2022.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2023.         IMPORT_CFM_FUNCTION AddPt
  2024.     ENDIF
  2025.  
  2026. ;
  2027. ; pascal Boolean EqualPt(Point pt1, Point pt2)
  2028. ;
  2029.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2030.         _EqualPt:    OPWORD    $A881
  2031.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2032.         IMPORT_CFM_FUNCTION EqualPt
  2033.     ENDIF
  2034.  
  2035. ;
  2036. ; pascal Boolean PtInRect(Point pt, const Rect *r)
  2037. ;
  2038.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2039.         _PtInRect:    OPWORD    $A8AD
  2040.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2041.         IMPORT_CFM_FUNCTION PtInRect
  2042.     ENDIF
  2043.  
  2044. ;
  2045. ; pascal void Pt2Rect(Point pt1, Point pt2, Rect *dstRect)
  2046. ;
  2047.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2048.         _Pt2Rect:    OPWORD    $A8AC
  2049.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2050.         IMPORT_CFM_FUNCTION Pt2Rect
  2051.     ENDIF
  2052.  
  2053. ;
  2054. ; pascal void PtToAngle(const Rect *r, Point pt, short *angle)
  2055. ;
  2056.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2057.         _PtToAngle:    OPWORD    $A8C3
  2058.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2059.         IMPORT_CFM_FUNCTION PtToAngle
  2060.     ENDIF
  2061.  
  2062. ;
  2063. ; pascal void SubPt(Point src, Point *dst)
  2064. ;
  2065.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2066.         _SubPt:    OPWORD    $A87F
  2067.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2068.         IMPORT_CFM_FUNCTION SubPt
  2069.     ENDIF
  2070.  
  2071. ;
  2072. ; pascal Boolean PtInRgn(Point pt, RgnHandle rgn)
  2073. ;
  2074.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2075.         _PtInRgn:    OPWORD    $A8E8
  2076.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2077.         IMPORT_CFM_FUNCTION PtInRgn
  2078.     ENDIF
  2079.  
  2080. ;
  2081. ; pascal void StdLine(Point newPt)
  2082. ;
  2083.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2084.         _StdLine:    OPWORD    $A890
  2085.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2086.         IMPORT_CFM_FUNCTION StdLine
  2087.     ENDIF
  2088.  
  2089. ;
  2090. ; pascal void OpenCPort(CGrafPtr port)
  2091. ;
  2092.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2093.         _OpenCPort:    OPWORD    $AA00
  2094.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2095.         IMPORT_CFM_FUNCTION OpenCPort
  2096.     ENDIF
  2097.  
  2098. ;
  2099. ; pascal void InitCPort(CGrafPtr port)
  2100. ;
  2101.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2102.         _InitCPort:    OPWORD    $AA01
  2103.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2104.         IMPORT_CFM_FUNCTION InitCPort
  2105.     ENDIF
  2106.  
  2107. ;
  2108. ; pascal void CloseCPort(CGrafPtr port)
  2109. ;
  2110.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2111.         _CloseCPort:    OPWORD    $AA02
  2112.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2113.         IMPORT_CFM_FUNCTION CloseCPort
  2114.     ENDIF
  2115.  
  2116. ;
  2117. ; pascal PixMapHandle NewPixMap(void )
  2118. ;
  2119.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2120.         _NewPixMap:    OPWORD    $AA03
  2121.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2122.         IMPORT_CFM_FUNCTION NewPixMap
  2123.     ENDIF
  2124.  
  2125. ;
  2126. ; pascal void DisposePixMap(PixMapHandle pm)
  2127. ;
  2128.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2129.         _DisposePixMap:    OPWORD    $AA04
  2130.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2131.         IMPORT_CFM_FUNCTION DisposePixMap
  2132.     ENDIF
  2133.  
  2134. ;
  2135. ; pascal void CopyPixMap(PixMapHandle srcPM, PixMapHandle dstPM)
  2136. ;
  2137.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2138.         _CopyPixMap:    OPWORD    $AA05
  2139.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2140.         IMPORT_CFM_FUNCTION CopyPixMap
  2141.     ENDIF
  2142.  
  2143. ;
  2144. ; pascal PixPatHandle NewPixPat(void )
  2145. ;
  2146.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2147.         _NewPixPat:    OPWORD    $AA07
  2148.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2149.         IMPORT_CFM_FUNCTION NewPixPat
  2150.     ENDIF
  2151.  
  2152. ;
  2153. ; pascal void DisposePixPat(PixPatHandle pp)
  2154. ;
  2155.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2156.         _DisposePixPat:    OPWORD    $AA08
  2157.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2158.         IMPORT_CFM_FUNCTION DisposePixPat
  2159.     ENDIF
  2160.  
  2161. ;
  2162. ; pascal void CopyPixPat(PixPatHandle srcPP, PixPatHandle dstPP)
  2163. ;
  2164.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2165.         _CopyPixPat:    OPWORD    $AA09
  2166.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2167.         IMPORT_CFM_FUNCTION CopyPixPat
  2168.     ENDIF
  2169.  
  2170. ;
  2171. ; pascal void PenPixPat(PixPatHandle pp)
  2172. ;
  2173.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2174.         _PenPixPat:    OPWORD    $AA0A
  2175.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2176.         IMPORT_CFM_FUNCTION PenPixPat
  2177.     ENDIF
  2178.  
  2179. ;
  2180. ; pascal void BackPixPat(PixPatHandle pp)
  2181. ;
  2182.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2183.         _BackPixPat:    OPWORD    $AA0B
  2184.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2185.         IMPORT_CFM_FUNCTION BackPixPat
  2186.     ENDIF
  2187.  
  2188. ;
  2189. ; pascal PixPatHandle GetPixPat(short patID)
  2190. ;
  2191.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2192.         _GetPixPat:    OPWORD    $AA0C
  2193.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2194.         IMPORT_CFM_FUNCTION GetPixPat
  2195.     ENDIF
  2196.  
  2197. ;
  2198. ; pascal void MakeRGBPat(PixPatHandle pp, const RGBColor *myColor)
  2199. ;
  2200.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2201.         _MakeRGBPat:    OPWORD    $AA0D
  2202.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2203.         IMPORT_CFM_FUNCTION MakeRGBPat
  2204.     ENDIF
  2205.  
  2206. ;
  2207. ; pascal void FillCRect(const Rect *r, PixPatHandle pp)
  2208. ;
  2209.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2210.         _FillCRect:    OPWORD    $AA0E
  2211.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2212.         IMPORT_CFM_FUNCTION FillCRect
  2213.     ENDIF
  2214.  
  2215. ;
  2216. ; pascal void FillCOval(const Rect *r, PixPatHandle pp)
  2217. ;
  2218.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2219.         _FillCOval:    OPWORD    $AA0F
  2220.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2221.         IMPORT_CFM_FUNCTION FillCOval
  2222.     ENDIF
  2223.  
  2224. ;
  2225. ; pascal void FillCRoundRect(const Rect *r, short ovalWidth, short ovalHeight, PixPatHandle pp)
  2226. ;
  2227.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2228.         _FillCRoundRect:    OPWORD    $AA10
  2229.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2230.         IMPORT_CFM_FUNCTION FillCRoundRect
  2231.     ENDIF
  2232.  
  2233. ;
  2234. ; pascal void FillCArc(const Rect *r, short startAngle, short arcAngle, PixPatHandle pp)
  2235. ;
  2236.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2237.         _FillCArc:    OPWORD    $AA11
  2238.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2239.         IMPORT_CFM_FUNCTION FillCArc
  2240.     ENDIF
  2241.  
  2242. ;
  2243. ; pascal void FillCRgn(RgnHandle rgn, PixPatHandle pp)
  2244. ;
  2245.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2246.         _FillCRgn:    OPWORD    $AA12
  2247.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2248.         IMPORT_CFM_FUNCTION FillCRgn
  2249.     ENDIF
  2250.  
  2251. ;
  2252. ; pascal void FillCPoly(PolyHandle poly, PixPatHandle pp)
  2253. ;
  2254.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2255.         _FillCPoly:    OPWORD    $AA13
  2256.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2257.         IMPORT_CFM_FUNCTION FillCPoly
  2258.     ENDIF
  2259.  
  2260. ;
  2261. ; pascal void RGBForeColor(const RGBColor *color)
  2262. ;
  2263.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2264.         _RGBForeColor:    OPWORD    $AA14
  2265.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2266.         IMPORT_CFM_FUNCTION RGBForeColor
  2267.     ENDIF
  2268.  
  2269. ;
  2270. ; pascal void RGBBackColor(const RGBColor *color)
  2271. ;
  2272.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2273.         _RGBBackColor:    OPWORD    $AA15
  2274.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2275.         IMPORT_CFM_FUNCTION RGBBackColor
  2276.     ENDIF
  2277.  
  2278. ;
  2279. ; pascal void SetCPixel(short h, short v, const RGBColor *cPix)
  2280. ;
  2281.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2282.         _SetCPixel:    OPWORD    $AA16
  2283.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2284.         IMPORT_CFM_FUNCTION SetCPixel
  2285.     ENDIF
  2286.  
  2287. ;
  2288. ; pascal void SetPortPix(PixMapHandle pm)
  2289. ;
  2290.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2291.         _SetPortPix:    OPWORD    $AA06
  2292.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2293.         IMPORT_CFM_FUNCTION SetPortPix
  2294.     ENDIF
  2295.  
  2296. ;
  2297. ; pascal void GetCPixel(short h, short v, RGBColor *cPix)
  2298. ;
  2299.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2300.         _GetCPixel:    OPWORD    $AA17
  2301.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2302.         IMPORT_CFM_FUNCTION GetCPixel
  2303.     ENDIF
  2304.  
  2305. ;
  2306. ; pascal void GetForeColor(RGBColor *color)
  2307. ;
  2308.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2309.         _GetForeColor:    OPWORD    $AA19
  2310.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2311.         IMPORT_CFM_FUNCTION GetForeColor
  2312.     ENDIF
  2313.  
  2314. ;
  2315. ; pascal void GetBackColor(RGBColor *color)
  2316. ;
  2317.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2318.         _GetBackColor:    OPWORD    $AA1A
  2319.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2320.         IMPORT_CFM_FUNCTION GetBackColor
  2321.     ENDIF
  2322.  
  2323. ;
  2324. ; pascal void SeedCFill(const BitMap *srcBits, const BitMap *dstBits, const Rect *srcRect, const Rect *dstRect, short seedH, short seedV, ColorSearchUPP matchProc, long matchData)
  2325. ;
  2326.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2327.         _SeedCFill:    OPWORD    $AA50
  2328.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2329.         IMPORT_CFM_FUNCTION SeedCFill
  2330.     ENDIF
  2331.  
  2332. ;
  2333. ; pascal void CalcCMask(const BitMap *srcBits, const BitMap *dstBits, const Rect *srcRect, const Rect *dstRect, const RGBColor *seedRGB, ColorSearchUPP matchProc, long matchData)
  2334. ;
  2335.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2336.         _CalcCMask:    OPWORD    $AA4F
  2337.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2338.         IMPORT_CFM_FUNCTION CalcCMask
  2339.     ENDIF
  2340.  
  2341. ;
  2342. ; pascal PicHandle OpenCPicture(const OpenCPicParams *newHeader)
  2343. ;
  2344.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2345.         _OpenCPicture:    OPWORD    $AA20
  2346.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2347.         IMPORT_CFM_FUNCTION OpenCPicture
  2348.     ENDIF
  2349.  
  2350. ;
  2351. ; pascal void OpColor(const RGBColor *color)
  2352. ;
  2353.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2354.         _OpColor:    OPWORD    $AA21
  2355.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2356.         IMPORT_CFM_FUNCTION OpColor
  2357.     ENDIF
  2358.  
  2359. ;
  2360. ; pascal void HiliteColor(const RGBColor *color)
  2361. ;
  2362.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2363.         _HiliteColor:    OPWORD    $AA22
  2364.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2365.         IMPORT_CFM_FUNCTION HiliteColor
  2366.     ENDIF
  2367.  
  2368. ;
  2369. ; pascal void DisposeCTable(CTabHandle cTable)
  2370. ;
  2371.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2372.         _DisposeCTable:    OPWORD    $AA24
  2373.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2374.         IMPORT_CFM_FUNCTION DisposeCTable
  2375.     ENDIF
  2376.  
  2377. ;
  2378. ; pascal CTabHandle GetCTable(short ctID)
  2379. ;
  2380.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2381.         _GetCTable:    OPWORD    $AA18
  2382.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2383.         IMPORT_CFM_FUNCTION GetCTable
  2384.     ENDIF
  2385.  
  2386. ;
  2387. ; pascal CCrsrHandle GetCCursor(short crsrID)
  2388. ;
  2389.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2390.         _GetCCursor:    OPWORD    $AA1B
  2391.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2392.         IMPORT_CFM_FUNCTION GetCCursor
  2393.     ENDIF
  2394.  
  2395. ;
  2396. ; pascal void SetCCursor(CCrsrHandle cCrsr)
  2397. ;
  2398.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2399.         _SetCCursor:    OPWORD    $AA1C
  2400.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2401.         IMPORT_CFM_FUNCTION SetCCursor
  2402.     ENDIF
  2403.  
  2404. ;
  2405. ; pascal void AllocCursor(void )
  2406. ;
  2407.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2408.         _AllocCursor:    OPWORD    $AA1D
  2409.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2410.         IMPORT_CFM_FUNCTION AllocCursor
  2411.     ENDIF
  2412.  
  2413. ;
  2414. ; pascal void DisposeCCursor(CCrsrHandle cCrsr)
  2415. ;
  2416.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2417.         _DisposeCCursor:    OPWORD    $AA26
  2418.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2419.         IMPORT_CFM_FUNCTION DisposeCCursor
  2420.     ENDIF
  2421.  
  2422.     IF OLDROUTINELOCATIONS THEN
  2423. ;
  2424. ; pascal CIconHandle GetCIcon(short iconID)
  2425. ;
  2426.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2427.         _GetCIcon:    OPWORD    $AA1E
  2428.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2429.         IMPORT_CFM_FUNCTION GetCIcon
  2430.     ENDIF
  2431.  
  2432. ;
  2433. ; pascal void PlotCIcon(const Rect *theRect, CIconHandle theIcon)
  2434. ;
  2435.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2436.         _PlotCIcon:    OPWORD    $AA1F
  2437.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2438.         IMPORT_CFM_FUNCTION PlotCIcon
  2439.     ENDIF
  2440.  
  2441. ;
  2442. ; pascal void DisposeCIcon(CIconHandle theIcon)
  2443. ;
  2444.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2445.         _DisposeCIcon:    OPWORD    $AA25
  2446.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2447.         IMPORT_CFM_FUNCTION DisposeCIcon
  2448.     ENDIF
  2449.  
  2450.     ENDIF    ; OLDROUTINELOCATIONS
  2451. ;
  2452. ; pascal void SetStdCProcs(CQDProcs *procs)
  2453. ;
  2454.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2455.         _SetStdCProcs:    OPWORD    $AA4E
  2456.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2457.         IMPORT_CFM_FUNCTION SetStdCProcs
  2458.     ENDIF
  2459.  
  2460. ;
  2461. ; pascal GDHandle GetMaxDevice(const Rect *globalRect)
  2462. ;
  2463.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2464.         _GetMaxDevice:    OPWORD    $AA27
  2465.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2466.         IMPORT_CFM_FUNCTION GetMaxDevice
  2467.     ENDIF
  2468.  
  2469. ;
  2470. ; pascal long GetCTSeed(void )
  2471. ;
  2472.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2473.         _GetCTSeed:    OPWORD    $AA28
  2474.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2475.         IMPORT_CFM_FUNCTION GetCTSeed
  2476.     ENDIF
  2477.  
  2478. ;
  2479. ; pascal GDHandle GetDeviceList(void )
  2480. ;
  2481.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2482.         _GetDeviceList:    OPWORD    $AA29
  2483.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2484.         IMPORT_CFM_FUNCTION GetDeviceList
  2485.     ENDIF
  2486.  
  2487. ;
  2488. ; pascal GDHandle GetMainDevice(void )
  2489. ;
  2490.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2491.         _GetMainDevice:    OPWORD    $AA2A
  2492.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2493.         IMPORT_CFM_FUNCTION GetMainDevice
  2494.     ENDIF
  2495.  
  2496. ;
  2497. ; pascal GDHandle GetNextDevice(GDHandle curDevice)
  2498. ;
  2499.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2500.         _GetNextDevice:    OPWORD    $AA2B
  2501.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2502.         IMPORT_CFM_FUNCTION GetNextDevice
  2503.     ENDIF
  2504.  
  2505. ;
  2506. ; pascal Boolean TestDeviceAttribute(GDHandle gdh, short attribute)
  2507. ;
  2508.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2509.         _TestDeviceAttribute:    OPWORD    $AA2C
  2510.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2511.         IMPORT_CFM_FUNCTION TestDeviceAttribute
  2512.     ENDIF
  2513.  
  2514. ;
  2515. ; pascal void SetDeviceAttribute(GDHandle gdh, short attribute, Boolean value)
  2516. ;
  2517.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2518.         _SetDeviceAttribute:    OPWORD    $AA2D
  2519.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2520.         IMPORT_CFM_FUNCTION SetDeviceAttribute
  2521.     ENDIF
  2522.  
  2523. ;
  2524. ; pascal void InitGDevice(short qdRefNum, long mode, GDHandle gdh)
  2525. ;
  2526.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2527.         _InitGDevice:    OPWORD    $AA2E
  2528.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2529.         IMPORT_CFM_FUNCTION InitGDevice
  2530.     ENDIF
  2531.  
  2532. ;
  2533. ; pascal GDHandle NewGDevice(short refNum, long mode)
  2534. ;
  2535.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2536.         _NewGDevice:    OPWORD    $AA2F
  2537.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2538.         IMPORT_CFM_FUNCTION NewGDevice
  2539.     ENDIF
  2540.  
  2541. ;
  2542. ; pascal void DisposeGDevice(GDHandle gdh)
  2543. ;
  2544.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2545.         _DisposeGDevice:    OPWORD    $AA30
  2546.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2547.         IMPORT_CFM_FUNCTION DisposeGDevice
  2548.     ENDIF
  2549.  
  2550. ;
  2551. ; pascal void SetGDevice(GDHandle gd)
  2552. ;
  2553.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2554.         _SetGDevice:    OPWORD    $AA31
  2555.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2556.         IMPORT_CFM_FUNCTION SetGDevice
  2557.     ENDIF
  2558.  
  2559. ;
  2560. ; pascal GDHandle GetGDevice(void )
  2561. ;
  2562.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2563.         _GetGDevice:    OPWORD    $AA32
  2564.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2565.         IMPORT_CFM_FUNCTION GetGDevice
  2566.     ENDIF
  2567.  
  2568. ;
  2569. ; pascal long Color2Index(const RGBColor *myColor)
  2570. ;
  2571.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2572.         _Color2Index:    OPWORD    $AA33
  2573.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2574.         IMPORT_CFM_FUNCTION Color2Index
  2575.     ENDIF
  2576.  
  2577. ;
  2578. ; pascal void Index2Color(long index, RGBColor *aColor)
  2579. ;
  2580.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2581.         _Index2Color:    OPWORD    $AA34
  2582.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2583.         IMPORT_CFM_FUNCTION Index2Color
  2584.     ENDIF
  2585.  
  2586. ;
  2587. ; pascal void InvertColor(RGBColor *myColor)
  2588. ;
  2589.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2590.         _InvertColor:    OPWORD    $AA35
  2591.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2592.         IMPORT_CFM_FUNCTION InvertColor
  2593.     ENDIF
  2594.  
  2595. ;
  2596. ; pascal Boolean RealColor(const RGBColor *color)
  2597. ;
  2598.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2599.         _RealColor:    OPWORD    $AA36
  2600.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2601.         IMPORT_CFM_FUNCTION RealColor
  2602.     ENDIF
  2603.  
  2604. ;
  2605. ; pascal void GetSubTable(CTabHandle myColors, short iTabRes, CTabHandle targetTbl)
  2606. ;
  2607.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2608.         _GetSubTable:    OPWORD    $AA37
  2609.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2610.         IMPORT_CFM_FUNCTION GetSubTable
  2611.     ENDIF
  2612.  
  2613. ;
  2614. ; pascal void MakeITable(CTabHandle cTabH, ITabHandle iTabH, short res)
  2615. ;
  2616.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2617.         _MakeITable:    OPWORD    $AA39
  2618.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2619.         IMPORT_CFM_FUNCTION MakeITable
  2620.     ENDIF
  2621.  
  2622. ;
  2623. ; pascal void AddSearch(ColorSearchUPP searchProc)
  2624. ;
  2625.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2626.         _AddSearch:    OPWORD    $AA3A
  2627.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2628.         IMPORT_CFM_FUNCTION AddSearch
  2629.     ENDIF
  2630.  
  2631. ;
  2632. ; pascal void AddComp(ColorComplementUPP compProc)
  2633. ;
  2634.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2635.         _AddComp:    OPWORD    $AA3B
  2636.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2637.         IMPORT_CFM_FUNCTION AddComp
  2638.     ENDIF
  2639.  
  2640. ;
  2641. ; pascal void DelSearch(ColorSearchUPP searchProc)
  2642. ;
  2643.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2644.         _DelSearch:    OPWORD    $AA4C
  2645.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2646.         IMPORT_CFM_FUNCTION DelSearch
  2647.     ENDIF
  2648.  
  2649. ;
  2650. ; pascal void DelComp(ColorComplementUPP compProc)
  2651. ;
  2652.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2653.         _DelComp:    OPWORD    $AA4D
  2654.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2655.         IMPORT_CFM_FUNCTION DelComp
  2656.     ENDIF
  2657.  
  2658. ;
  2659. ; pascal void SetClientID(short id)
  2660. ;
  2661.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2662.         _SetClientID:    OPWORD    $AA3C
  2663.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2664.         IMPORT_CFM_FUNCTION SetClientID
  2665.     ENDIF
  2666.  
  2667. ;
  2668. ; pascal void ProtectEntry(short index, Boolean protect)
  2669. ;
  2670.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2671.         _ProtectEntry:    OPWORD    $AA3D
  2672.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2673.         IMPORT_CFM_FUNCTION ProtectEntry
  2674.     ENDIF
  2675.  
  2676. ;
  2677. ; pascal void ReserveEntry(short index, Boolean reserve)
  2678. ;
  2679.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2680.         _ReserveEntry:    OPWORD    $AA3E
  2681.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2682.         IMPORT_CFM_FUNCTION ReserveEntry
  2683.     ENDIF
  2684.  
  2685. ;
  2686. ; pascal void SetEntries(short start, short count, CSpecArray aTable)
  2687. ;
  2688.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2689.         _SetEntries:    OPWORD    $AA3F
  2690.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2691.         IMPORT_CFM_FUNCTION SetEntries
  2692.     ENDIF
  2693.  
  2694. ;
  2695. ; pascal void SaveEntries(CTabHandle srcTable, CTabHandle resultTable, ReqListRec *selection)
  2696. ;
  2697.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2698.         _SaveEntries:    OPWORD    $AA49
  2699.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2700.         IMPORT_CFM_FUNCTION SaveEntries
  2701.     ENDIF
  2702.  
  2703. ;
  2704. ; pascal void RestoreEntries(CTabHandle srcTable, CTabHandle dstTable, ReqListRec *selection)
  2705. ;
  2706.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2707.         _RestoreEntries:    OPWORD    $AA4A
  2708.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2709.         IMPORT_CFM_FUNCTION RestoreEntries
  2710.     ENDIF
  2711.  
  2712. ;
  2713. ; pascal short QDError(void )
  2714. ;
  2715.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2716.         _QDError:    OPWORD    $AA40
  2717.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2718.         IMPORT_CFM_FUNCTION QDError
  2719.     ENDIF
  2720.  
  2721. ;
  2722. ; pascal void CopyDeepMask(const BitMap *srcBits, const BitMap *maskBits, const BitMap *dstBits, const Rect *srcRect, const Rect *maskRect, const Rect *dstRect, short mode, RgnHandle maskRgn)
  2723. ;
  2724.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2725.         _CopyDeepMask:    OPWORD    $AA51
  2726.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2727.         IMPORT_CFM_FUNCTION CopyDeepMask
  2728.     ENDIF
  2729.  
  2730. ;
  2731. ; pascal void DeviceLoop(RgnHandle drawingRgn, DeviceLoopDrawingUPP drawingProc, long userData, DeviceLoopFlags flags)
  2732. ;
  2733.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2734.         _DeviceLoop:    OPWORD    $ABCA
  2735.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2736.         IMPORT_CFM_FUNCTION DeviceLoop
  2737.     ENDIF
  2738.  
  2739. ;
  2740. ; pascal Ptr GetMaskTable(void )
  2741. ;
  2742.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2743.         ; returns:
  2744.         ;    Ptr             <= A0
  2745.         _GetMaskTable:    OPWORD    $A836
  2746.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2747.         IMPORT_CFM_FUNCTION GetMaskTable
  2748.     ENDIF
  2749.  
  2750. ;
  2751. ; pascal PatHandle GetPattern(short patternID)
  2752. ;
  2753.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2754.         _GetPattern:    OPWORD    $A9B8
  2755.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2756.         IMPORT_CFM_FUNCTION GetPattern
  2757.     ENDIF
  2758.  
  2759. ;
  2760. ; pascal CursHandle GetCursor(short cursorID)
  2761. ;
  2762.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2763.         _GetCursor:    OPWORD    $A9B9
  2764.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2765.         IMPORT_CFM_FUNCTION GetCursor
  2766.     ENDIF
  2767.  
  2768. ;
  2769. ; pascal PicHandle GetPicture(short pictureID)
  2770. ;
  2771.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2772.         _GetPicture:    OPWORD    $A9BC
  2773.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2774.         IMPORT_CFM_FUNCTION GetPicture
  2775.     ENDIF
  2776.  
  2777. ;
  2778. ; pascal long DeltaPoint(Point ptA, Point ptB)
  2779. ;
  2780.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2781.         _DeltaPoint:    OPWORD    $A94F
  2782.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2783.         IMPORT_CFM_FUNCTION DeltaPoint
  2784.     ENDIF
  2785.  
  2786. ;
  2787. ; pascal void ShieldCursor(const Rect *shieldRect, Point offsetPt)
  2788. ;
  2789.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2790.         _ShieldCursor:    OPWORD    $A855
  2791.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2792.         IMPORT_CFM_FUNCTION ShieldCursor
  2793.     ENDIF
  2794.  
  2795. ;
  2796. ; pascal void ScreenRes(short *scrnHRes, short *scrnVRes)
  2797. ;
  2798.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2799.         Macro
  2800.         _ScreenRes
  2801.             move.l              (sp)+,A1
  2802.             move.w              $0102,(A1)
  2803.             move.l              (sp)+,A1
  2804.             move.w              $0104,(A1)
  2805.         EndM
  2806.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2807.         IMPORT_CFM_FUNCTION ScreenRes
  2808.     ENDIF
  2809.  
  2810.     IF OLDROUTINENAMES THEN
  2811. ;
  2812. ; pascal void DisposPixMap(PixMapHandle pm)
  2813. ;
  2814.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2815.         _DisposPixMap:    OPWORD    $AA04
  2816.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2817.         IMPORT_CFM_FUNCTION DisposPixMap
  2818.     ENDIF
  2819.  
  2820. ;
  2821. ; pascal void DisposPixPat(PixPatHandle pp)
  2822. ;
  2823.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2824.         _DisposPixPat:    OPWORD    $AA08
  2825.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2826.         IMPORT_CFM_FUNCTION DisposPixPat
  2827.     ENDIF
  2828.  
  2829. ;
  2830. ; pascal void DisposCTable(CTabHandle cTable)
  2831. ;
  2832.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2833.         _DisposCTable:    OPWORD    $AA24
  2834.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2835.         IMPORT_CFM_FUNCTION DisposCTable
  2836.     ENDIF
  2837.  
  2838. ;
  2839. ; pascal void DisposCCursor(CCrsrHandle cCrsr)
  2840. ;
  2841.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2842.         _DisposCCursor:    OPWORD    $AA26
  2843.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2844.         IMPORT_CFM_FUNCTION DisposCCursor
  2845.     ENDIF
  2846.  
  2847.     IF OLDROUTINELOCATIONS THEN
  2848. ;
  2849. ; pascal void DisposCIcon(CIconHandle theIcon)
  2850. ;
  2851.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2852.         _DisposCIcon:    OPWORD    $AA25
  2853.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2854.         IMPORT_CFM_FUNCTION DisposCIcon
  2855.     ENDIF
  2856.  
  2857.     ENDIF    ; OLDROUTINELOCATIONS
  2858. ;
  2859. ; pascal void DisposGDevice(GDHandle gdh)
  2860. ;
  2861.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2862.         _DisposGDevice:    OPWORD    $AA30
  2863.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2864.         IMPORT_CFM_FUNCTION DisposGDevice
  2865.     ENDIF
  2866.  
  2867.     IF OLDROUTINELOCATIONS THEN
  2868.     ENDIF    ; OLDROUTINELOCATIONS
  2869.     ENDIF    ; OLDROUTINENAMES
  2870. ;    From ToolUtils.i
  2871. ;
  2872.  
  2873. ;
  2874. ; pascal void PackBits(Ptr *srcPtr, Ptr *dstPtr, short srcBytes)
  2875. ;
  2876.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2877.         _PackBits:    OPWORD    $A8CF
  2878.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2879.         IMPORT_CFM_FUNCTION PackBits
  2880.     ENDIF
  2881.  
  2882. ;
  2883. ; pascal void UnpackBits(Ptr *srcPtr, Ptr *dstPtr, short dstBytes)
  2884. ;
  2885.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2886.         _UnpackBits:    OPWORD    $A8D0
  2887.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2888.         IMPORT_CFM_FUNCTION UnpackBits
  2889.     ENDIF
  2890.  
  2891. ;
  2892. ; pascal Fixed SlopeFromAngle(short angle)
  2893. ;
  2894.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2895.         _SlopeFromAngle:    OPWORD    $A8BC
  2896.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2897.         IMPORT_CFM_FUNCTION SlopeFromAngle
  2898.     ENDIF
  2899.  
  2900. ;
  2901. ; pascal short AngleFromSlope(Fixed slope)
  2902. ;
  2903.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2904.         _AngleFromSlope:    OPWORD    $A8C4
  2905.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2906.         IMPORT_CFM_FUNCTION AngleFromSlope
  2907.     ENDIF
  2908.  
  2909.  
  2910.  
  2911.  
  2912.  
  2913.  
  2914.  
  2915.  
  2916.  
  2917.  
  2918.  
  2919.  
  2920.     ENDIF ; __QUICKDRAW__ 
  2921.  
  2922.